Skip to content

Instantly share code, notes, and snippets.

@kennyp
Created July 31, 2012 19:39
Show Gist options
  • Save kennyp/3219863 to your computer and use it in GitHub Desktop.
Save kennyp/3219863 to your computer and use it in GitHub Desktop.
Playing with SDL
module TestSDL where
import qualified Graphics.UI.SDL.General as SDLG
import Graphics.UI.SDL.Joystick (countAvailable, tryName)
main = do
SDLG.init [SDLG.InitJoystick]
name <- tryName 0
case name of
Nothing -> print "None Found"
Just x -> print x
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment