KeyboardSensor(Sensor)

base classes — bpy_struct, Sensor

class bpy.types.KeyboardSensor(Sensor)

Sensor to detect keyboard events

key
Type:

enum in Event Type Items, default ‘NONE’

log

Property that indicates whether to log keystrokes as a string

Type:

string, default “”, (never None)

modifier_key_1

Modifier key code

Type:

enum in Event Type Items, default ‘NONE’

modifier_key_2

Modifier key code

Type:

enum in Event Type Items, default ‘NONE’

target

Property that receives the keystrokes in case a string is logged

Type:

string, default “”, (never None)

use_all_keys

Trigger this sensor on any keystroke

Type:

boolean, default False

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