MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / joy_CloseStick

Function joy_CloseStick

ddio/sdljoy.cpp:212–216  ·  view source on GitHub ↗

closes a stick closes connection with controller.

Source from the content-addressed store, hash-verified

210// closes a stick
211// closes connection with controller.
212static void joy_CloseStick(tJoystick joy) {
213 // CLOSE joystick here
214 SDL_JoystickClose(Joysticks[joy].handle);
215 Joysticks[joy].handle = 0;
216}
217
218// returns true if joystick valid
219bool joy_IsValid(tJoystick joy) {

Callers 2

joy_CloseFunction · 0.85
joy_InitStickFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected