Update keycodes.py
This commit is contained in:
parent
afb202e4eb
commit
42e4c7a214
1 changed files with 3 additions and 2 deletions
|
|
@ -7,9 +7,10 @@ kbd = Keyboard()
|
|||
while True:
|
||||
if cpx.button_a:
|
||||
kbd.send(Keycode.SHIFT, Keycode.A) # Type capital 'A'
|
||||
while cpx.button_a:
|
||||
while cpx.button_a: # Wait for button to be released
|
||||
pass
|
||||
|
||||
if cpx.button_b:
|
||||
kbd.send(Keycode.CONTROL, Keycode.X) # control-X key
|
||||
while cpx.button_b:
|
||||
while cpx.button_b: # Wait for button to be released
|
||||
pass
|
||||
|
|
|
|||
Loading…
Reference in a new issue