coastline 0.0.4
Loading...
Searching...
No Matches
inputpoll.h
Go to the documentation of this file.
1#ifndef COASTLINE_PLATFORM_WIN_INPUTPOLL_H
2#define COASTLINE_PLATFORM_WIN_INPUTPOLL_H
3
4#if TGR_PLATFORM != TGR_PLATFORM_SDL
10extern unsigned g_dwInputButtonMask;
11
17extern int g_bNetReadyToStartSent;
18
24extern int g_bNetGamePaused;
25#endif
26
27#ifdef __cplusplus
37void UpdateForceFeedbackForce(int bReduceForce, int bEnableForce, int nForce);
38
47void SetForceFeedbackDirection(int nDirection);
48#endif /* __cplusplus */
49
50#ifdef __cplusplus
51extern "C" {
52#endif
53
63unsigned ReadInputDevicesButtonMask(int *pnSteering, int *pnAcceleration);
64
70#if TGR_PLATFORM != TGR_PLATFORM_SDL
71extern int g_bRespawnRequested;
72#endif
73
80void ResetMouseState(void);
81
93
102
111
120
129
130#if TGR_PLATFORM == TGR_PLATFORM_SDL
138
141
143#define g_dwInputButtonMask (GetSdlRaceInputState()->buttonMask)
144#define g_bNetReadyToStartSent (GetSdlRaceInputState()->readyToStartSent)
145#define g_bNetGamePaused (GetSdlRaceInputState()->paused)
146#define g_bRespawnRequested (GetSdlRaceInputState()->respawnRequested)
148
158int ReadSecondControllerPad(unsigned short *buttons, signed char *stickX, signed char *stickY);
159#endif /* TGR_PLATFORM == TGR_PLATFORM_SDL */
160
161#ifdef __cplusplus
162}
163#endif
164
165#endif /* COASTLINE_PLATFORM_WIN_INPUTPOLL_H */
void ResetMouseState(void)
Whether the respawn binding was pressed.
int InitializeJoystickDevice(void)
Add a user of the game controller of dwInputDeviceType.
void StartForceFeedbackJolt(void)
Start the jolt of force feedback with the duration of g_dwForceFeedbackDuration and its direction,...
void SetForceFeedbackLongDuration(void)
Set the effects of force feedback to last 250 milliseconds, under the conditions of SetForceFeedbackD...
void SetForceFeedbackShortDuration(void)
Set the effects of force feedback to last 125 milliseconds, under the conditions of SetForceFeedbackD...
SdlRaceInputState * GetSdlRaceInputState(void)
unsigned ReadInputDevicesButtonMask(int *pnSteering, int *pnAcceleration)
Poll input devices and translate active bindings into race or replay actions.
void ReleaseJoystickDevice(void)
Drop a user of the game controller device.
int ReadSecondControllerPad(unsigned short *buttons, signed char *stickX, signed char *stickY)
Read the second controller of the SDL game as the console reads a pad, for the second player of a rac...
Action and pause requests for one SDL input configuration.
Definition inputpoll.h:132
int respawnRequested
Definition inputpoll.h:136
int paused
Definition inputpoll.h:135
int readyToStartSent
Definition inputpoll.h:134
unsigned buttonMask
Definition inputpoll.h:133