From 79853af1c4e575240128b586f728b5ab6b1fe8d9 Mon Sep 17 00:00:00 2001 From: Ruben van de Ven Date: Tue, 5 Nov 2024 18:35:03 +0100 Subject: [PATCH] describe keyboard controls --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index e200c28..d30d5f0 100644 --- a/README.md +++ b/README.md @@ -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.