chickadee » sdl2 » game-controller-open!

game-controller-open! joy-indexprocedure

Open the game controller wrapping the joystick at the given index. Not all joysticks are controllers; use is-game-controller? to check before calling this. See SDL_GameControllerOpen.

Signals an exception of kind (exn sdl2) if an error occurs.

Requires sdl2 egg 0.4.0 or higher.