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:
terminx 2012-11-17 16:48:05 +00:00
parent f8a373cb70
commit bbbeefc6a1
2 changed files with 3 additions and 18 deletions

View File

@ -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);
}

View File

@ -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
};