Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Rubberduckycooly
GitHub Repository: Rubberduckycooly/RSDKv5-Decompilation
Path: blob/master/RSDKv5/RSDK/Input/SDL2/SDL2InputDevice.hpp
1167 views
1
2
namespace SKU
3
{
4
5
struct InputDeviceSDL : InputDevice {
6
void UpdateInput();
7
void ProcessInput(int32 controllerID);
8
void CloseDevice();
9
10
int32 buttonMasks;
11
int32 prevButtonMasks;
12
uint8 stateUp;
13
uint8 stateDown;
14
uint8 stateLeft;
15
uint8 stateRight;
16
uint8 stateA;
17
uint8 stateB;
18
uint8 stateC;
19
uint8 stateX;
20
uint8 stateY;
21
uint8 stateZ;
22
uint8 stateStart;
23
uint8 stateSelect;
24
uint8 stateBumper_L;
25
uint8 stateBumper_R;
26
uint8 stateStick_L;
27
uint8 stateStick_R;
28
float bumperDeltaL;
29
float bumperDeltaR;
30
float triggerDeltaL;
31
float triggerDeltaR;
32
float hDelta_L;
33
float vDelta_L;
34
float vDelta_R;
35
float hDelta_R;
36
37
SDL_GameController *controllerPtr;
38
bool32 swapABXY;
39
};
40
41
InputDeviceSDL *InitSDL2InputDevice(uint32 id, SDL_GameController *game_controller);
42
43
void InitSDL2InputAPI();
44
void ReleaseSDL2InputAPI();
45
46
} // namespace SKU
47