Enumerations

class macpy.RecordType

An enumeration specifying which events to record.

KEYBOARD

Record keyboard events only.

POINTER

Record pointer events only.

BOTH

Record both keyboard and pointer events.

class macpy.key.Key

An enumeration describing platform independent keys/buttons.

While members of this enum behave the same on every platform, not every platform defines every key. For complete list of keys/buttons defined on your platform see input.h on Linux and Virtual Keycodes on Windows.

Members of this enum are also valid tuple where first member is a Linux event code and second member is a Windows virtual keycode. These can also be accessed as attributes ec and vk respectively.

ec

A Linux event code that is this enum member.

Returns:A Linux event code.
Return type:EventCode
vk

A Windows virtual keycode that is this enum member.

Returns:A Windows virtual keycode.
Return type:VirtualKeycode
class macpy.key.KeyState

An enumeration describing whether the key/button is pressed or released.

This enum implements __bool__(), so if the key is pressed it will be True and False otherwise.

class macpy.event.PointerAxis

An enumeration describing pointer scrolling axis.

class macpy.event.WindowState

An enumeration describing window state.

class macpy.event.WindowEventType

An enumeration describing whether window was created, destroyed or focused.