summaryrefslogtreecommitdiff
path: root/doc/python/keyboarddata.txt
blob: 4be55884cea1c9596293550c8986045929623a73 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
KeyboardData

----

This document describes the 'KeyboardData' class, passed to functions bound to
keyboard events.

----

Attributes

----

keychain

The keychain (in the format that input.Keyboard.bind() expects them) that
was pressed.

----

state

An integer bitmask of the modifiers pressed down when the key was pressed.

----

keycode

An integer containing the keycode for the key that was pressed.

----

press

True or False for if the event was a key press or a key release