We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 36219a2 commit ffcfcccCopy full SHA for ffcfccc
1 file changed
pyglet/events.py
@@ -11,6 +11,7 @@
11
12
@window.event
13
def on_key_press(symbol, modifiers):
14
+ print("key %s was pressed" % symbol)
15
if symbol == key.A:
16
print('The "A" key was pressed.')
17
elif symbol == key.LEFT:
@@ -21,6 +22,7 @@ def on_key_press(symbol, modifiers):
21
22
23
24
def on_mouse_press(x, y, button, modifiers):
25
+ print("location: (%s, %s), button: %s" % (x, y, button))
26
if button == mouse.LEFT:
27
print('The left mouse button was pressed.')
28
0 commit comments