Created
July 31, 2012 19:39
-
-
Save kennyp/3219863 to your computer and use it in GitHub Desktop.
Playing with SDL
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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