Skip to content

Commit

Permalink
key press bugfix + new preset
Browse files Browse the repository at this point in the history
  • Loading branch information
tul53850 committed Apr 24, 2024
1 parent aa26270 commit 88cdc82
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
2 changes: 1 addition & 1 deletion officialVersion/config.ini
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ value = volumeup
value = volumedown

[hotkey3]
value = esc
value = space

[hotkey4]
value = left
Expand Down
7 changes: 7 additions & 0 deletions officialVersion/gesture_recognition.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,13 @@ def start():
pyautogui.keyUp(gestures[2])
pyautogui.keyUp(gestures[3])
pyautogui.keyUp(gestures[4])

else :
pyautogui.keyUp(gestures[0])
pyautogui.keyUp(gestures[1])
pyautogui.keyUp(gestures[2])
pyautogui.keyUp(gestures[3])
pyautogui.keyUp(gestures[4])


cv2.imshow('Camera Feed', frame)
Expand Down
9 changes: 8 additions & 1 deletion officialVersion/preset.ini
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ h5 = space
preset = powerpoint
h1 = left
h2 = right
h3 = esc
h3 = a
h4 = l
h5 = s

Expand All @@ -22,3 +22,10 @@ h3 = s
h4 = d
h5 = space

[run]
preset = run
h1 = a
h2 = d
h3 = space
h4 = left
h5 = right

0 comments on commit 88cdc82

Please sign in to comment.