Event(bpy_struct)#

base class — bpy_struct

class bpy.types.Event(bpy_struct)#

Window Manager Event

alt#

True when the Alt/Option key is held

Type:

boolean, default False, (readonly)

ascii#

Single ASCII character for this event

Type:

string, default “”, (readonly, never None)

ctrl#

True when the Ctrl key is held

Type:

boolean, default False, (readonly)

direction#

The direction (only applies to drag events)

Type:

enum in Event Direction Items, default ‘ANY’, (readonly)

is_consecutive#

Part of a trackpad or NDOF motion, interrupted by cursor motion, button or key press events

Type:

boolean, default False, (readonly)

is_mouse_absolute#

The last motion event was an absolute input

Type:

boolean, default False, (readonly)

is_repeat#

The event is generated by holding a key down

Type:

boolean, default False, (readonly)

is_tablet#

The event has tablet data

Type:

boolean, default False, (readonly)

mouse_prev_press_x#

The window relative horizontal location of the last press event

Type:

int in [-inf, inf], default 0, (readonly)

mouse_prev_press_y#

The window relative vertical location of the last press event

Type:

int in [-inf, inf], default 0, (readonly)

mouse_prev_x#

The window relative horizontal location of the mouse

Type:

int in [-inf, inf], default 0, (readonly)

mouse_prev_y#

The window relative vertical location of the mouse

Type:

int in [-inf, inf], default 0, (readonly)

mouse_region_x#

The region relative horizontal location of the mouse

Type:

int in [-inf, inf], default 0, (readonly)

mouse_region_y#

The region relative vertical location of the mouse

Type:

int in [-inf, inf], default 0, (readonly)

mouse_x#

The window relative horizontal location of the mouse

Type:

int in [-inf, inf], default 0, (readonly)

mouse_y#

The window relative vertical location of the mouse

Type:

int in [-inf, inf], default 0, (readonly)

oskey#

True when the Cmd key is held

Type:

boolean, default False, (readonly)

pressure#

The pressure of the tablet or 1.0 if no tablet present

Type:

float in [0, 1], default 1.0, (readonly)

shift#

True when the Shift key is held

Type:

boolean, default False, (readonly)

tilt#

The pressure of the tablet or zeroes if no tablet present

Type:

mathutils.Vector of 2 items in [-inf, inf], default (0.0, 0.0), (readonly)

type#
Type:

enum in Event Type Items, default ‘NONE’, (readonly)

type_prev#
Type:

enum in Event Type Items, default ‘NONE’, (readonly)

unicode#

Single unicode character for this event

Type:

string, default “”, (readonly, never None)

value#

The type of event, only applies to some

Type:

enum in Event Value Items, default ‘NOTHING’, (readonly)

value_prev#

The type of event, only applies to some

Type:

enum in Event Value Items, default ‘NOTHING’, (readonly)

xr#

XR event data

Type:

XrEventData, (readonly)

classmethod bl_rna_get_subclass(id, default=None)#
Parameters:

id (string) – The RNA type identifier.

Returns:

The RNA type or default when not found.

Return type:

bpy.types.Struct subclass

classmethod bl_rna_get_subclass_py(id, default=None)#
Parameters:

id (string) – The RNA type identifier.

Returns:

The class or default when not found.

Return type:

type

Inherited Properties#

Inherited Functions#

References#