describe keyboard controls
This commit is contained in:
parent
2c71d4a679
commit
79853af1c4
1 changed files with 3 additions and 1 deletions
|
@ -10,7 +10,7 @@ pip install pyglet-cornerpin
|
||||||
|
|
||||||
## Usage
|
## 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
|
```python
|
||||||
|
@ -46,3 +46,5 @@ pins = PygletCornerPin(window, corners)
|
||||||
```
|
```
|
||||||
|
|
||||||
Run [pattern.py](examples/pattern.py) in the examples folder for a demo.
|
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.
|
||||||
|
|
Loading…
Reference in a new issue