Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ynsta/steamcontroller.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStany MARCEL <stanypub@gmail.com>2015-11-02 23:40:19 +0300
committerStany MARCEL <stanypub@gmail.com>2015-11-02 23:40:19 +0300
commit37a388a36361aeb46f0f324531acc85ffe361f69 (patch)
tree4aea9ca89a6271d1f6bb6df1de407762e09750d4 /scripts
parent67f134311be2bba98bcde544074f4b0f49a7cb49 (diff)
Reorganize controller buttons value
Signed-off-by: Stany MARCEL <stanypub@gmail.com>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/sc-xbox.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/sc-xbox.py b/scripts/sc-xbox.py
index 26565ad..182baca 100755
--- a/scripts/sc-xbox.py
+++ b/scripts/sc-xbox.py
@@ -45,7 +45,7 @@ button_map = {
SCButtons.Back : Keys.BTN_SELECT,
SCButtons.Start : Keys.BTN_START,
SCButtons.Steam : Keys.BTN_MODE,
- SCButtons.Stick : Keys.BTN_THUMBL,
+ SCButtons.LPad : Keys.BTN_THUMBL,
SCButtons.RPad : Keys.BTN_THUMBR,
SCButtons.LGrip : Keys.BTN_A,
SCButtons.RGrip : Keys.BTN_B,
@@ -112,7 +112,7 @@ def scInput2Uinput(sci, xb):
for btn, ev in button_map.items():
- if btn == SCButtons.Stick and sci.buttons & SCButtons.LPadTouch:
+ if btn == SCButtons.LPad and sci.buttons & SCButtons.LPadTouch:
key_events.append((ev, 0))
else:
if sci.buttons & btn: