Make physical back button act as left mouse
This might help get proper functionality without recoding in ruby
This commit is contained in:
parent
051cde9ff8
commit
1a6ad68352
|
@ -325,6 +325,11 @@ void EventThread::process(RGSSThreadData &rtData)
|
|||
break;
|
||||
}
|
||||
|
||||
if (event.key.keysym.scancode == SDL_SCANCODE_AC_BACK)
|
||||
{
|
||||
mouseState.buttons[SDL_BUTTON_RIGHT] = true;
|
||||
}
|
||||
|
||||
keyStates[event.key.keysym.scancode] = true;
|
||||
break;
|
||||
|
||||
|
@ -340,6 +345,11 @@ void EventThread::process(RGSSThreadData &rtData)
|
|||
}
|
||||
|
||||
keyStates[event.key.keysym.scancode] = false;
|
||||
if (event.key.keysym.scancode == SDL_SCANCODE_AC_BACK)
|
||||
{
|
||||
mouseState.buttons[SDL_BUTTON_RIGHT] = false;
|
||||
}
|
||||
|
||||
break;
|
||||
|
||||
case SDL_JOYBUTTONDOWN :
|
||||
|
|
Loading…
Reference in New Issue