describe keyboard controls

This commit is contained in:
Ruben van de Ven 2024-11-05 18:35:03 +01:00
parent 2c71d4a679
commit 79853af1c4

View file

@ -10,7 +10,7 @@ pip install pyglet-cornerpin
## Usage
Create instance for a window, and register the event handlers for dragging the pins.
Create instance for a window, and register the event handlers for dragging the pins. A `on_key_release` is also registered to handle keyboard controls to move the pins.
```python
@ -46,3 +46,5 @@ pins = PygletCornerPin(window, corners)
```
Run [pattern.py](examples/pattern.py) in the examples folder for a demo.
To use the keyboard, select a pin with number keys 1-4, the use the arrow keys (optionally with ctrl/shift modifier) to move the handle.