simvx.core.input.enums

Key, button, and axis enumerations for the input system.

Module Contents

Classes

Key

Keyboard key codes (matching GLFW key values).

MouseButton

Mouse button codes (matching GLFW).

JoyButton

Gamepad button codes (matching GLFW/SDL standard gamepad).

JoyAxis

Gamepad axis codes.

MouseCaptureMode

Mouse cursor capture modes.

Functions

key_to_name

Convert a Key enum to its string name.

name_to_keys

Convert a string key name to matching Key enum values.

API

class simvx.core.input.enums.Key[source]

Bases: enum.IntEnum

Keyboard key codes (matching GLFW key values).

Initialization

Initialize self. See help(type(self)) for accurate signature.

SPACE

32

APOSTROPHE

39

COMMA

44

MINUS

45

PERIOD

46

SLASH

47

KEY_0

48

KEY_1

49

KEY_2

50

KEY_3

51

KEY_4

52

KEY_5

53

KEY_6

54

KEY_7

55

KEY_8

56

KEY_9

57

SEMICOLON

59

EQUAL

61

A

65

B

66

C

67

D

68

E

69

F

70

G

71

H

72

I

73

J

74

K

75

L

76

M

77

N

78

O

79

P

80

Q

81

R

82

S

83

T

84

U

85

V

86

W

87

X

88

Y

89

Z

90

LEFT_BRACKET

91

BACKSLASH

92

RIGHT_BRACKET

93

GRAVE_ACCENT

96

ESCAPE

256

ENTER

257

TAB

258

BACKSPACE

259

INSERT

260

DELETE

261

RIGHT

262

LEFT

263

DOWN

264

UP

265

PAGE_UP

266

PAGE_DOWN

267

HOME

268

END

269

CAPS_LOCK

280

SCROLL_LOCK

281

NUM_LOCK

282

PRINT_SCREEN

283

PAUSE

284

F1

290

F2

291

F3

292

F4

293

F5

294

F6

295

F7

296

F8

297

F9

298

F10

299

F11

300

F12

301

KP_0

320

KP_1

321

KP_2

322

KP_3

323

KP_4

324

KP_5

325

KP_6

326

KP_7

327

KP_8

328

KP_9

329

KP_DECIMAL

330

KP_DIVIDE

331

KP_MULTIPLY

332

KP_SUBTRACT

333

KP_ADD

334

KP_ENTER

335

LEFT_SHIFT

340

LEFT_CONTROL

341

LEFT_ALT

342

LEFT_SUPER

343

RIGHT_SHIFT

344

RIGHT_CONTROL

345

RIGHT_ALT

346

RIGHT_SUPER

347

MENU

348

__abs__()
__add__()
__and__()
__bool__()
__ceil__()
__delattr__()
__dir__()
__divmod__()
__eq__()
__float__()
__floor__()
__floordiv__()
__format__()
__ge__()
__getattribute__()
__getnewargs__()
__getstate__()
__gt__()
__hash__()
__index__()
__int__()
__invert__()
__le__()
__lshift__()
__lt__()
__mod__()
__mul__()
__ne__()
__neg__()
__new__()
__or__()
__pos__()
__pow__()
__radd__()
__rand__()
__rdivmod__()
__reduce__()
__reduce_ex__()
__repr__()
__rfloordiv__()
__rlshift__()
__rmod__()
__rmul__()
__ror__()
__round__()
__rpow__()
__rrshift__()
__rshift__()
__rsub__()
__rtruediv__()
__rxor__()
__setattr__()
__sizeof__()
__str__()
__sub__()
__subclasshook__()
__truediv__()
__trunc__()
__xor__()
as_integer_ratio()
bit_count()
bit_length()
conjugate()
class denominator
class imag
is_integer()
class numerator
class real
to_bytes()
__deepcopy__(memo)
__copy__()
name()
value()
class simvx.core.input.enums.MouseButton[source]

Bases: enum.IntEnum

Mouse button codes (matching GLFW).

Initialization

Initialize self. See help(type(self)) for accurate signature.

LEFT

0

RIGHT

1

MIDDLE

2

BUTTON_4

3

BUTTON_5

4

__abs__()
__add__()
__and__()
__bool__()
__ceil__()
__delattr__()
__dir__()
__divmod__()
__eq__()
__float__()
__floor__()
__floordiv__()
__format__()
__ge__()
__getattribute__()
__getnewargs__()
__getstate__()
__gt__()
__hash__()
__index__()
__int__()
__invert__()
__le__()
__lshift__()
__lt__()
__mod__()
__mul__()
__ne__()
__neg__()
__new__()
__or__()
__pos__()
__pow__()
__radd__()
__rand__()
__rdivmod__()
__reduce__()
__reduce_ex__()
__repr__()
__rfloordiv__()
__rlshift__()
__rmod__()
__rmul__()
__ror__()
__round__()
__rpow__()
__rrshift__()
__rshift__()
__rsub__()
__rtruediv__()
__rxor__()
__setattr__()
__sizeof__()
__str__()
__sub__()
__subclasshook__()
__truediv__()
__trunc__()
__xor__()
as_integer_ratio()
bit_count()
bit_length()
conjugate()
class denominator
class imag
is_integer()
class numerator
class real
to_bytes()
__deepcopy__(memo)
__copy__()
name()
value()
class simvx.core.input.enums.JoyButton[source]

Bases: enum.IntEnum

Gamepad button codes (matching GLFW/SDL standard gamepad).

Initialization

Initialize self. See help(type(self)) for accurate signature.

A

0

B

1

X

2

Y

3

LEFT_BUMPER

4

RIGHT_BUMPER

5

BACK

6

START

7

GUIDE

8

LEFT_THUMB

9

RIGHT_THUMB

10

DPAD_UP

11

DPAD_RIGHT

12

DPAD_DOWN

13

DPAD_LEFT

14

__abs__()
__add__()
__and__()
__bool__()
__ceil__()
__delattr__()
__dir__()
__divmod__()
__eq__()
__float__()
__floor__()
__floordiv__()
__format__()
__ge__()
__getattribute__()
__getnewargs__()
__getstate__()
__gt__()
__hash__()
__index__()
__int__()
__invert__()
__le__()
__lshift__()
__lt__()
__mod__()
__mul__()
__ne__()
__neg__()
__new__()
__or__()
__pos__()
__pow__()
__radd__()
__rand__()
__rdivmod__()
__reduce__()
__reduce_ex__()
__repr__()
__rfloordiv__()
__rlshift__()
__rmod__()
__rmul__()
__ror__()
__round__()
__rpow__()
__rrshift__()
__rshift__()
__rsub__()
__rtruediv__()
__rxor__()
__setattr__()
__sizeof__()
__str__()
__sub__()
__subclasshook__()
__truediv__()
__trunc__()
__xor__()
as_integer_ratio()
bit_count()
bit_length()
conjugate()
class denominator
class imag
is_integer()
class numerator
class real
to_bytes()
__deepcopy__(memo)
__copy__()
name()
value()
class simvx.core.input.enums.JoyAxis[source]

Bases: enum.IntEnum

Gamepad axis codes.

Initialization

Initialize self. See help(type(self)) for accurate signature.

LEFT_X

0

LEFT_Y

1

RIGHT_X

2

RIGHT_Y

3

LEFT_TRIGGER

4

RIGHT_TRIGGER

5

__abs__()
__add__()
__and__()
__bool__()
__ceil__()
__delattr__()
__dir__()
__divmod__()
__eq__()
__float__()
__floor__()
__floordiv__()
__format__()
__ge__()
__getattribute__()
__getnewargs__()
__getstate__()
__gt__()
__hash__()
__index__()
__int__()
__invert__()
__le__()
__lshift__()
__lt__()
__mod__()
__mul__()
__ne__()
__neg__()
__new__()
__or__()
__pos__()
__pow__()
__radd__()
__rand__()
__rdivmod__()
__reduce__()
__reduce_ex__()
__repr__()
__rfloordiv__()
__rlshift__()
__rmod__()
__rmul__()
__ror__()
__round__()
__rpow__()
__rrshift__()
__rshift__()
__rsub__()
__rtruediv__()
__rxor__()
__setattr__()
__sizeof__()
__str__()
__sub__()
__subclasshook__()
__truediv__()
__trunc__()
__xor__()
as_integer_ratio()
bit_count()
bit_length()
conjugate()
class denominator
class imag
is_integer()
class numerator
class real
to_bytes()
__deepcopy__(memo)
__copy__()
name()
value()
class simvx.core.input.enums.MouseCaptureMode[source]

Bases: enum.IntEnum

Mouse cursor capture modes.

Initialization

Initialize self. See help(type(self)) for accurate signature.

VISIBLE

0

HIDDEN

1

CAPTURED

2

CONFINED

3

__abs__()
__add__()
__and__()
__bool__()
__ceil__()
__delattr__()
__dir__()
__divmod__()
__eq__()
__float__()
__floor__()
__floordiv__()
__format__()
__ge__()
__getattribute__()
__getnewargs__()
__getstate__()
__gt__()
__hash__()
__index__()
__int__()
__invert__()
__le__()
__lshift__()
__lt__()
__mod__()
__mul__()
__ne__()
__neg__()
__new__()
__or__()
__pos__()
__pow__()
__radd__()
__rand__()
__rdivmod__()
__reduce__()
__reduce_ex__()
__repr__()
__rfloordiv__()
__rlshift__()
__rmod__()
__rmul__()
__ror__()
__round__()
__rpow__()
__rrshift__()
__rshift__()
__rsub__()
__rtruediv__()
__rxor__()
__setattr__()
__sizeof__()
__str__()
__sub__()
__subclasshook__()
__truediv__()
__trunc__()
__xor__()
as_integer_ratio()
bit_count()
bit_length()
conjugate()
class denominator
class imag
is_integer()
class numerator
class real
to_bytes()
__deepcopy__(memo)
__copy__()
name()
value()
simvx.core.input.enums.key_to_name(key: simvx.core.input.enums.Key) str[source]

Convert a Key enum to its string name.

simvx.core.input.enums.name_to_keys(name: str) list[simvx.core.input.enums.Key][source]

Convert a string key name to matching Key enum values.