Skip to content

Commit

Permalink
Fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kozec committed Jul 4, 2019
1 parent e42acf7 commit 4ceef4f
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 4 deletions.
5 changes: 5 additions & 0 deletions docs/actions.md
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,11 @@ Can be used to map gyroscope to movement stick or to use controller as racing wh
Resets gyroscope offsets so current orientation is treated as neutral.


#### <a name="cemuhook"></a> cemuhook()
When set to gyro, outputs gyroscope data in way compatibile with Cemu, Citra and
other applications using CemuHookUDP motion provider protocol.


#### <a name="tilt"></a> gyro(front_down, front_up, tilt_left, tilt_right)
Maps tilting of gamepad into actions. When gamepad is tilt to one of for supported
sides, assigned action is executed as if by button press and then "released" after
Expand Down
9 changes: 5 additions & 4 deletions tests/test_parser/test_actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -270,8 +270,8 @@ def test_XY(self):
AxisAction(Axes.ABS_X),
AxisAction(Axes.ABS_Y)
))


def test_relXY(self):
"""
Tests if relXYAciton can be converted to string and parsed back to
Expand All @@ -281,8 +281,8 @@ def test_relXY(self):
AxisAction(Axes.ABS_RX),
AxisAction(Axes.ABS_RY)
))


def test_trigger(self):
"""
Tests if TriggerAction can be converted to string and parsed back to
Expand All @@ -292,3 +292,4 @@ def test_trigger(self):
15, 234,
ButtonAction(Keys.KEY_A)
))

8 changes: 8 additions & 0 deletions tests/test_parser/test_special_actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,3 +143,11 @@ def test_gestures(self):
'LRLR', TurnOffAction()
)
)


def test_cemuhook(self):
"""
Nothing to test here
"""
pass

8 changes: 8 additions & 0 deletions tests/test_profile/test_special_actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,3 +161,11 @@ def test_gestures(self):
assert isinstance(a, OSDAction)
assert isinstance(a.action, GesturesAction)
assert isinstance(a.action.gestures['UD'], TurnOffAction)


def test_cemuhook(self):
"""
Nothing to test here
"""
pass

0 comments on commit 4ceef4f

Please sign in to comment.