mirror of
https://github.com/jmarshall23/CnC_Remastered_Collection.git
synced 2026-08-12 08:00:55 +02:00
WWKeyboardClass::Down now goes through the SDL system for mouse up and down, needs work for other keys.
This commit is contained in:
@@ -364,6 +364,14 @@ char WWKeyboardClass::To_ASCII(unsigned short key)
|
||||
*=============================================================================================*/
|
||||
bool WWKeyboardClass::Down(unsigned short key)
|
||||
{
|
||||
if (key == KN_LMOUSE) {
|
||||
return g_globalKeyFlags & GadgetClass::LEFTPRESS;
|
||||
}
|
||||
|
||||
if (key == KN_RMOUSE) {
|
||||
return g_globalKeyFlags & GadgetClass::RIGHTPRESS;
|
||||
}
|
||||
|
||||
return(GetAsyncKeyState(key & 0xFF) == 0 ? false : true);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user