From f8a47de5ec444c452093371e3db16857eb39a490 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Sun, 16 Mar 2003 21:11:39 +0000 Subject: merge the C branch into HEAD --- doc/python/keyboarddata.txt | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 doc/python/keyboarddata.txt (limited to 'doc/python/keyboarddata.txt') diff --git a/doc/python/keyboarddata.txt b/doc/python/keyboarddata.txt new file mode 100644 index 00000000..4be55884 --- /dev/null +++ b/doc/python/keyboarddata.txt @@ -0,0 +1,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 -- cgit v1.2.3