Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Rubberduckycooly
GitHub Repository: Rubberduckycooly/RSDKv5-Decompilation
Path: blob/master/RSDKv5/RSDK/Input/Keyboard/KBInputDevice.hpp
1174 views
1
2
namespace SKU
3
{
4
5
extern int32 keyState[PLAYER_COUNT];
6
7
struct InputDeviceKeyboard : InputDevice {
8
void UpdateInput();
9
void ProcessInput(int32 controllerID);
10
11
uint16 buttonMasks;
12
uint16 prevButtonMasks;
13
uint8 controllerID;
14
int32 mouseHideTimer;
15
uint8 stateUp;
16
uint8 stateDown;
17
uint8 stateLeft;
18
uint8 stateRight;
19
uint8 stateA;
20
uint8 stateB;
21
uint8 stateC;
22
uint8 stateX;
23
uint8 stateY;
24
uint8 stateZ;
25
uint8 stateStart;
26
uint8 stateSelect;
27
};
28
29
void InitKeyboardInputAPI();
30
InputDeviceKeyboard *InitKeyboardDevice(uint32 id);
31
32
void UpdateKeyState(int32 keyCode);
33
void ClearKeyState(int32 keyCode);
34
35
#if !RETRO_REV02
36
extern int32 specialKeyStates[4];
37
extern int32 prevSpecialKeyStates[4];
38
extern int32 buttonDownCount;
39
extern int32 prevButtonDownCount;
40
41
void HandleSpecialKeys();
42
#endif
43
44
} // namespace SKU
45
46