Skip to content

Commit

Permalink
Bumping all the numbers and upgrading default profiles
Browse files Browse the repository at this point in the history
  • Loading branch information
kozec committed Dec 24, 2017
1 parent 5e006b8 commit f24035e
Show file tree
Hide file tree
Showing 4 changed files with 53 additions and 65 deletions.
38 changes: 18 additions & 20 deletions default_profiles/Desktop.sccprofile
Original file line number Diff line number Diff line change
@@ -1,18 +1,16 @@
{
"buttons": {
"A" : { "action": "button(Keys.KEY_ENTER)" },
"B" : { "action": "button(Keys.KEY_ESC)" },
"BACK" : { "action": "button(Keys.KEY_BACKSPACE)" },
"C" : {
"action": "menu('Default.menu')",
"hold": { "action": "menu('Default.menu')" }
},
"LB" : { "action": "button(Keys.KEY_LEFTCTRL)" },
"RB" : { "action": "button(Keys.KEY_LEFTALT)" },
"RPAD" : { "action": "button(Keys.BTN_LEFT)" },
"START" : { "action": "button(Keys.KEY_LEFTSHIFT)" },
"X" : { "action": "button(Keys.KEY_SPACE)" },
"Y" : { "action": "button(Keys.KEY_TAB)" }
"A" : { "action": "button(Keys.KEY_ENTER)" },
"B" : { "action": "button(Keys.KEY_ESC)" },
"BACK" : { "action": "button(Keys.KEY_BACKSPACE)" },
"C" : { "action": "hold(menu('Default.menu'), menu('Default.menu'))" },
"CPADPRESS" : { "action": "button(Keys.BTN_LEFT)" },
"LB" : { "action": "button(Keys.KEY_LEFTCTRL)" },
"RB" : { "action": "button(Keys.KEY_LEFTALT)" },
"RPAD" : { "action": "button(Keys.BTN_LEFT)" },
"START" : { "action": "button(Keys.KEY_LEFTSHIFT)" },
"X" : { "action": "button(Keys.KEY_SPACE)" },
"Y" : { "action": "button(Keys.KEY_TAB)" }
},

"trigger_left": { "action": "button(Keys.BTN_RIGHT)" },
Expand All @@ -21,18 +19,18 @@
"gyro": {},

"pad_left": {
"X": { "action": "mouse(Rels.REL_HWHEEL, 1.0)" },
"Y": { "action": "mouse(Rels.REL_WHEEL, 1.0)" },
"feedback": ["LEFT", 1052.0]
"action": "feedback(LEFT, 4096, 16, ball(XY(mouse(Rels.REL_HWHEEL, 1.0), mouse(Rels.REL_WHEEL, 1.0))))"
},

"pad_right": {
"action": "trackball(1.0)",
"feedback": ["RIGHT", 256],
"smooth" : [ 8, 0.78 ]
"action": "smooth(8, 0.78, 2.0, feedback(RIGHT, 256, ball(mouse())))"
},

"cpad": {
"action": "mouse()"
},

"stick": { "action": "dpad(button(Keys.KEY_UP), button(Keys.KEY_DOWN), button(Keys.KEY_LEFT), button(Keys.KEY_RIGHT))" },

"version": 1
"version": 1.3
}
Original file line number Diff line number Diff line change
@@ -1,21 +1,18 @@
{
"buttons" : {
"A" : { "action" : "button(Keys.BTN_A)" },
"B" : { "action" : "button(Keys.BTN_B)" },
"X" : { "action" : "button(Keys.BTN_X)" },
"Y" : { "action" : "button(Keys.BTN_Y)" },
"LB" : { "action" : "button(Keys.BTN_TL)" },
"RB" : { "action" : "button(Keys.BTN_TR)" },
"BACK" : { "action" : "button(Keys.BTN_SELECT)" },
"START" : { "action" : "button(Keys.BTN_START)" },
"C" : {
"action": "menu('Default.menu')",
"hold": { "action": "menu('Default.menu')" }
},
"LPAD" : { "action" : "button(Keys.BTN_THUMBL)" },
"RPAD" : { "action" : "button(Keys.BTN_THUMBR)" },
"LGRIP" : { "action" : "button(Keys.BTN_A)" },
"RGRIP" : { "action" : "button(Keys.BTN_X)" }
"A" : { "action" : "button(Keys.BTN_A)" },
"B" : { "action" : "button(Keys.BTN_B)" },
"X" : { "action" : "button(Keys.BTN_X)" },
"Y" : { "action" : "button(Keys.BTN_Y)" },
"LB" : { "action" : "button(Keys.BTN_TL)" },
"RB" : { "action" : "button(Keys.BTN_TR)" },
"BACK" : { "action" : "button(Keys.BTN_SELECT)" },
"START" : { "action" : "button(Keys.BTN_START)" },
"C" : { "action": "hold(menu('Default.menu'), menu('Default.menu'))" },
"STICKPRESS" : { "action": "button(Keys.BTN_THUMBL)" },
"RPAD" : { "action" : "button(Keys.BTN_THUMBR)" },
"LGRIP" : { "action" : "button(Keys.BTN_A)" },
"RGRIP" : { "action" : "button(Keys.BTN_X)" }
},

"trigger_left": { "action": "axis(Axes.ABS_Z)" },
Expand All @@ -30,14 +27,12 @@
},

"pad_left" : {
"action" : "dpad(hatup(Axes.ABS_HAT0Y), hatdown(Axes.ABS_HAT0Y), hatleft(Axes.ABS_HAT0X), hatright(Axes.ABS_HAT0X) )"
"action": "click(dpad(hatup(Axes.ABS_HAT0Y), hatdown(Axes.ABS_HAT0Y), hatleft(Axes.ABS_HAT0X), hatright(Axes.ABS_HAT0X)))"
},

"pad_right" : {
"action" : "trackball",
"feedback": ["RIGHT", 256],
"smooth" : [ 8, 0.78 ]
"action": "smooth(8, 0.78, feedback(RIGHT, 256, ball(mouse())))"
},

"version": 1
"version": 1.3
}
41 changes: 18 additions & 23 deletions default_profiles/XBox Controller.sccprofile
Original file line number Diff line number Diff line change
@@ -1,26 +1,23 @@
{
"buttons" : {
"A" : { "action" : "button(Keys.BTN_A)" },
"B" : { "action" : "button(Keys.BTN_B)" },
"X" : { "action" : "button(Keys.BTN_X)" },
"Y" : { "action" : "button(Keys.BTN_Y)" },
"LB" : { "action" : "button(Keys.BTN_TL)" },
"RB" : { "action" : "button(Keys.BTN_TR)" },
"BACK" : { "action" : "button(Keys.BTN_SELECT)" },
"START" : { "action" : "button(Keys.BTN_START)" },
"C" : {
"action": "menu('Default.menu')",
"hold": { "action": "menu('Default.menu')" }
},
"LPAD" : { "action" : "button(Keys.BTN_THUMBL)" },
"RPAD" : { "action" : "button(Keys.BTN_THUMBR)" },
"LGRIP" : { "action" : "button(Keys.BTN_A)" },
"RGRIP" : { "action" : "button(Keys.BTN_X)" }
"A" : { "action" : "button(Keys.BTN_A)" },
"B" : { "action" : "button(Keys.BTN_B)" },
"X" : { "action" : "button(Keys.BTN_X)" },
"Y" : { "action" : "button(Keys.BTN_Y)" },
"LB" : { "action" : "button(Keys.BTN_TL)" },
"RB" : { "action" : "button(Keys.BTN_TR)" },
"BACK" : { "action" : "button(Keys.BTN_SELECT)" },
"START" : { "action" : "button(Keys.BTN_START)" },
"C" : { "action": "hold(menu('Default.menu'), menu('Default.menu'))" },
"STICKPRESS" : { "action": "button(Keys.BTN_THUMBL)" },
"RPAD" : { "action" : "button(Keys.BTN_THUMBR)" },
"LGRIP" : { "action" : "button(Keys.BTN_A)" },
"RGRIP" : { "action" : "button(Keys.BTN_X)" }
},

"trigger_left": { "action": "axis(Axes.ABS_Z)" },
"trigger_right": { "action": "axis(Axes.ABS_RZ)" }
,
"trigger_right": { "action": "axis(Axes.ABS_RZ)" },

"gyro": {},

"stick" : {
Expand All @@ -30,14 +27,12 @@
},

"pad_left" : {
"action" : "dpad(hatup(Axes.ABS_HAT0Y), hatdown(Axes.ABS_HAT0Y), hatleft(Axes.ABS_HAT0X), hatright(Axes.ABS_HAT0X) )"
"action": "click(dpad(hatup(Axes.ABS_HAT0Y), hatdown(Axes.ABS_HAT0Y), hatleft(Axes.ABS_HAT0X), hatright(Axes.ABS_HAT0X)))"
},

"pad_right" : {
"X" : { "action" : "axis(Axes.ABS_RX)" },
"Y" : { "action" : "raxis(Axes.ABS_RY)" },
"feedback": ["RIGHT", 256]
"action": "feedback(RIGHT, 256, XY(axis(Axes.ABS_RX), raxis(Axes.ABS_RY)))"
},

"version": 1
"version": 1.3
}
2 changes: 1 addition & 1 deletion scc/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
If SC-Controller is updated while daemon is running, DAEMON_VERSION send by
daemon will differ one one expected by UI and daemon will be forcefully restarted.
"""
DAEMON_VERSION = "0.3.99.7"
DAEMON_VERSION = "0.4"

HPERIOD = 0.02
LPERIOD = 0.5
Expand Down

0 comments on commit f24035e

Please sign in to comment.