forked from mart1nro/joycontrol
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfig.py
34 lines (32 loc) · 913 Bytes
/
config.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
import pygame
"""
to change a button's key set the value to pygame.K_(your key) example:
yKey = pygame.K_e
if you want to disable a button set the value to None, example:
rstickKeyClick = None
"""
switchMac = None # your mac address here
lstickKeyUp = pygame.K_w
lstickKeyDown = pygame.K_s
lstickKeyLeft = pygame.K_a
lstickKeyRight = pygame.K_d
lstickKeyClick = pygame.K_f
aKey = pygame.K_SPACE
bKey = pygame.K_BACKSPACE
xKey = pygame.K_q
yKey = pygame.K_e
lKey = pygame.K_t
rKey = pygame.K_y
zlKey = pygame.K_c
zrKey = pygame.K_b
minusKey = pygame.K_ESCAPE
dpadUp = pygame.K_UP
dpadDown = pygame.K_DOWN
dpadLeft = pygame.K_LEFT
dpadRight = pygame.K_RIGHT
rstickKeyClick = pygame.K_l
plusKey = pygame.K_BACKSLASH
nfcKey = pygame.K_h
catchMouse = False # makes sure mouse stays in the middle of the window use alt+e to toggle
mouseAsRstick = False # experimental, also turn on catch mouse
rstickSenstivity = 14