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-05 03:29:24 +0300
committerStany MARCEL <stanypub@gmail.com>2015-11-05 03:29:24 +0300
commit2c8f57593d10c96de839d98e5314436e4e99895c (patch)
treeb3dba74f0f8a97cae9a216f331ec8b351b44ae39 /scripts
parent9d09d9450467a487e0829102f5546837346f31b3 (diff)
Correct dpad orientation
Signed-off-by: Stany MARCEL <stanypub@gmail.com>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/sc-xbox.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/sc-xbox.py b/scripts/sc-xbox.py
index 58cad9e..9965e25 100755
--- a/scripts/sc-xbox.py
+++ b/scripts/sc-xbox.py
@@ -53,7 +53,7 @@ button_map = {
SCButtons.RGrip : Keys.BTN_B,
}
-LPAD_OUT_FILTER = 4
+LPAD_OUT_FILTER = 6
LPAD_FB_FILTER = 20
@static_vars(out_flt=[0, 0], fb_flt=0, prev_btn=0)
@@ -80,9 +80,9 @@ def lpad_func(idx, x, btn, threshold, evstick, evtouch, clicked, invert):
feedback = (lpad_func.fb_flt <= 0 and lpad_func.out_flt[idx] <= 0)
if invert:
- events.append((evtouch, 1 if x > 0 else -1, feedback))
- else:
events.append((evtouch, 1 if x < 0 else -1, feedback))
+ else:
+ events.append((evtouch, 1 if x > 0 else -1, feedback))
if feedback:
lpad_func.fb_flt = LPAD_FB_FILTER;
lpad_func.out_flt[idx] = LPAD_OUT_FILTER