Skip to content

Commit

Permalink
OSX: Disable synthetic touch=>mouse conversion
Browse files Browse the repository at this point in the history
No idea if this will help with QW-Group#354, need
  someone with touchbar to test
(or someone to explain to me how to use touchbar
  simulator in xcode with ezQuake)
  • Loading branch information
meag committed Aug 3, 2021
1 parent 2244c7c commit 75313ef
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions vid_sdl2.c
Original file line number Diff line number Diff line change
Expand Up @@ -1367,6 +1367,11 @@ static void VID_SDL_Init(void)
#endif
SDL_SetHint(SDL_HINT_GRAB_KEYBOARD, vid_grab_keyboard.integer == 0 ? "0" : "1");
SDL_SetHintWithPriority(SDL_HINT_MOUSE_RELATIVE_MODE_WARP, "0", SDL_HINT_OVERRIDE);
#ifdef __APPLE__
#ifdef SDL_HINT_TOUCH_MOUSE_EVENTS
SDL_SetHint(SDL_HINT_TOUCH_MOUSE_EVENTS, "0");
#endif
#endif

{
int i;
Expand Down

0 comments on commit 75313ef

Please sign in to comment.