workaround for focus event loss???
This commit is contained in:
parent
97fe43b660
commit
826a44be81
1
Makefile
1
Makefile
|
@ -1,4 +1,3 @@
|
|||
#SUBDIRS = src/sdl-instead stead games themes icon desktop doc
|
||||
SUBDIRS = src/sdl-instead stead games themes icon desktop doc languages
|
||||
|
||||
all:
|
||||
|
|
|
@ -81,6 +81,7 @@ int input(struct inp_event *inp, int wait)
|
|||
inp->sym = SDL_GetKeyName(event.key.keysym.sym);
|
||||
break;
|
||||
case SDL_MOUSEMOTION:
|
||||
m_focus = 1;
|
||||
inp->type = MOUSE_MOTION;
|
||||
inp->x = event.button.x;
|
||||
inp->y = event.button.y;
|
||||
|
|
Reference in a new issue