mirror of
https://github.com/DrBeef/Raze.git
synced 2024-11-16 01:11:28 +00:00
Replace a few one line MACT mouse functions with macros that do the same thing
git-svn-id: https://svn.eduke32.com/eduke32@3199 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
f8a373cb70
commit
bbbeefc6a1
2 changed files with 3 additions and 18 deletions
|
@ -70,20 +70,5 @@ int32_t MOUSE_GetButtons(void)
|
|||
}
|
||||
|
||||
|
||||
int32_t MOUSE_ClearButton(int32_t b)
|
||||
{
|
||||
return (mouseb &= ~b);
|
||||
}
|
||||
void MOUSE_ClearAllButtons(void)
|
||||
{
|
||||
mouseb = 0;
|
||||
}
|
||||
|
||||
|
||||
void MOUSE_GetDelta(int32_t*x, int32_t*y)
|
||||
{
|
||||
readmousexy(x,y);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -46,9 +46,9 @@ void MOUSE_Shutdown( void );
|
|||
//void MOUSE_ShowCursor( void );
|
||||
//void MOUSE_HideCursor( void );
|
||||
int32_t MOUSE_GetButtons( void );
|
||||
int32_t MOUSE_ClearButton( int32_t b );
|
||||
void MOUSE_ClearAllButtons(void);
|
||||
void MOUSE_GetDelta( int32_t*x, int32_t*y );
|
||||
#define MOUSE_ClearButton(b) (mouseb &= ~b)
|
||||
#define MOUSE_ClearAllButtons() mouseb = 0
|
||||
#define MOUSE_GetDelta(x, y) readmousexy(x,y)
|
||||
|
||||
#ifdef EXTERNC
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue