Mouse L/R Key now goes through the keyboard system.

This commit is contained in:
Justin Marshall
2020-06-16 12:58:20 -07:00
parent 3cbdd10813
commit f70f3331a0
+2
View File
@@ -723,10 +723,12 @@ void WWSDL_ProcessEvents(KeyNumType& key, int& flags, bool presentBuffer) {
leftMouseProcessed = true;
numFramesLMouse++;
key = KN_LMOUSE;
Keyboard->Put_Element(KN_LMOUSE);
}
else if (event.button.button == SDL_BUTTON_RIGHT) {
numFramesLMouse = 0;
flags = GadgetClass::RIGHTPRESS;
Keyboard->Put_Element(KN_RMOUSE);
key = KN_RMOUSE;
}
break;