Fix Key enum member names: NUM_0 not Num0, LEFT_SHIFT not LSHIFT, add complete key categories
parent
b0b18f7a0f
commit
cffd9d02de
1 changed files with 8 additions and 3 deletions
|
|
@ -42,11 +42,16 @@ mcrfpy.current_scene = scene
|
||||||
All keyboard keys are available as attributes of the `mcrfpy.Key` enum:
|
All keyboard keys are available as attributes of the `mcrfpy.Key` enum:
|
||||||
|
|
||||||
- **Letters:** `Key.A` through `Key.Z`
|
- **Letters:** `Key.A` through `Key.Z`
|
||||||
- **Numbers:** `Key.Num0` through `Key.Num9`
|
- **Numbers:** `Key.NUM_0` through `Key.NUM_9`
|
||||||
|
- **Numpad:** `Key.NUMPAD_0` through `Key.NUMPAD_9`
|
||||||
- **Arrows:** `Key.UP`, `Key.DOWN`, `Key.LEFT`, `Key.RIGHT`
|
- **Arrows:** `Key.UP`, `Key.DOWN`, `Key.LEFT`, `Key.RIGHT`
|
||||||
- **Special:** `Key.SPACE`, `Key.ENTER`, `Key.ESCAPE`, `Key.TAB`, `Key.BACKSPACE`, `Key.DELETE`
|
- **Special:** `Key.SPACE`, `Key.ENTER`, `Key.ESCAPE`, `Key.TAB`, `Key.BACKSPACE`, `Key.DELETE`
|
||||||
- **Modifiers:** `Key.LSHIFT`, `Key.RSHIFT`, `Key.LCTRL`, `Key.RCTRL`, `Key.LALT`, `Key.RALT`
|
- **Modifiers:** `Key.LEFT_SHIFT`, `Key.RIGHT_SHIFT`, `Key.LEFT_CONTROL`, `Key.RIGHT_CONTROL`, `Key.LEFT_ALT`, `Key.RIGHT_ALT`
|
||||||
- **Function:** `Key.F1` through `Key.F15`
|
- **Function:** `Key.F1` through `Key.F15`
|
||||||
|
- **Navigation:** `Key.HOME`, `Key.END`, `Key.PAGE_UP`, `Key.PAGE_DOWN`, `Key.INSERT`
|
||||||
|
- **Punctuation:** `Key.COMMA`, `Key.PERIOD`, `Key.SEMICOLON`, `Key.APOSTROPHE`, `Key.SLASH`, `Key.BACKSLASH`, `Key.GRAVE`, `Key.HYPHEN`, `Key.EQUAL`
|
||||||
|
- **Brackets:** `Key.LEFT_BRACKET`, `Key.RIGHT_BRACKET`
|
||||||
|
- **Numpad ops:** `Key.ADD`, `Key.SUBTRACT`, `Key.MULTIPLY`, `Key.DIVIDE`
|
||||||
|
|
||||||
### InputState Enum (`mcrfpy.InputState`)
|
### InputState Enum (`mcrfpy.InputState`)
|
||||||
|
|
||||||
|
|
@ -251,7 +256,7 @@ See [[Writing-Tests]] for complete testing patterns.
|
||||||
- `hovered_cell` - Read-only `(x, y)` tuple or `None`
|
- `hovered_cell` - Read-only `(x, y)` tuple or `None`
|
||||||
|
|
||||||
**Enums:**
|
**Enums:**
|
||||||
- `mcrfpy.Key` - Keyboard key codes (A-Z, Num0-9, F1-F15, arrows, modifiers)
|
- `mcrfpy.Key` - Keyboard key codes (A-Z, NUM_0-NUM_9, F1-F15, arrows, modifiers)
|
||||||
- `mcrfpy.MouseButton` - LEFT, RIGHT, MIDDLE, SCROLL_UP, SCROLL_DOWN
|
- `mcrfpy.MouseButton` - LEFT, RIGHT, MIDDLE, SCROLL_UP, SCROLL_DOWN
|
||||||
- `mcrfpy.InputState` - PRESSED, RELEASED
|
- `mcrfpy.InputState` - PRESSED, RELEASED
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue