Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import Controller
- import Canvas
- game = Canvas.Canvas()
- keyTest = Controller.Controller()
- game.setScreenWidth(640)
- game.setScreenHeight(480)
- game.setScreenX(0)
- game.setScreenY(0)
- game.setScreenInitialise()
- game.setScreenTitle("Keyboard Test")
- while keyTest.isKeyPressed("q") == False :
- for i in range(97,122) :
- if keyTest.isKeyPressed(chr(i)) :
- print chr(i)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement