mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-11 07:11:39 +00:00
Remove "volatile" qualifier from mouse related variables, no longer required after the long ago removal of the hack that polled mouse input in a separate thread
git-svn-id: https://svn.eduke32.com/eduke32@4617 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
f8b340de02
commit
c5835ef741
3 changed files with 6 additions and 5 deletions
|
@ -100,8 +100,8 @@ extern int32_t GetKey(int32_t key);
|
|||
extern void SetKey(int32_t key, int32_t state);
|
||||
|
||||
// mouse
|
||||
extern volatile int32_t mousex, mousey, mouseb, mouseabsx, mouseabsy;
|
||||
extern volatile uint8_t mousegrab, moustat;
|
||||
extern int32_t mousex, mousey, mouseb, mouseabsx, mouseabsy;
|
||||
extern uint8_t mousegrab, moustat;
|
||||
|
||||
// joystick
|
||||
extern int32_t *joyaxis, *joyhat, joyb;
|
||||
|
|
|
@ -15,8 +15,8 @@ char keyasciififo[KEYFIFOSIZ], keyasciififoplc, keyasciififoend;
|
|||
char remap[KEYSTATUSSIZ];
|
||||
int32_t remapinit=0;
|
||||
char key_names[NUMKEYS][24];
|
||||
volatile int32_t mousex=0,mousey=0,mouseb=0,mouseabsx=0,mouseabsy=0;
|
||||
volatile uint8_t moustat = 0, mousegrab = 0;
|
||||
int32_t mousex=0,mousey=0,mouseb=0,mouseabsx=0,mouseabsy=0;
|
||||
uint8_t moustat = 0, mousegrab = 0;
|
||||
int32_t *joyaxis = NULL, joyb=0, *joyhat = NULL;
|
||||
char joyisgamepad=0, joynumaxes=0, joynumbuttons=0, joynumhats=0;
|
||||
int32_t joyaxespresent=0;
|
||||
|
@ -164,6 +164,7 @@ void fullscreen_tint_gl(uint8_t r, uint8_t g, uint8_t b, uint8_t f)
|
|||
bglDisable(GL_TEXTURE_2D);
|
||||
bglDisable(GL_FOG);
|
||||
|
||||
bglBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
|
||||
bglEnable(GL_BLEND);
|
||||
bglColor4ub(r, g, b, f);
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
static BOOL rawinput_started = 0;
|
||||
static uint8_t KeyboardState[256] = {0}; // VKeys
|
||||
|
||||
extern volatile uint8_t moustat, mousegrab;
|
||||
extern uint8_t moustat, mousegrab;
|
||||
extern void SetKey(int32_t key, int32_t state);
|
||||
|
||||
//#define MASK_DOWN (1<<(i<<1))
|
||||
|
|
Loading…
Reference in a new issue