Skip to content
This repository has been archived by the owner on Jan 20, 2021. It is now read-only.

Commit

Permalink
change plus/minus buttons to start/select
Browse files Browse the repository at this point in the history
  • Loading branch information
jfurcean committed Jan 11, 2021
1 parent d380c80 commit 5e4f760
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions examples/wiiclassic_simpletest.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
print("Button Pressed: Y")
if controller.button_home:
print("Button Pressed: HOME")
if controller.button_plus:
print("Button Pressed: +")
if controller.button_minus:
print("Button Pressed: -")
if controller.button_start:
print("Button Pressed: START")
if controller.button_select:
print("Button Pressed: SELECT")
8 changes: 4 additions & 4 deletions wiiclassic.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,14 +143,14 @@ def button_home(self):
return not bool(self.buffer[4] & 0x8)

@property
def button_plus(self):
"""Return current pressed state of the Plus button"""
def button_start(self):
"""Return current pressed state of the Start/Plus button"""
self._read_data()
return not bool(self.buffer[4] & 0x4)

@property
def button_minus(self):
"""Return current pressed state of the Minus button"""
def button_select(self):
"""Return current pressed state of the Select/Minus button"""
self._read_data()
return not bool(self.buffer[4] & 0x10)

Expand Down

0 comments on commit 5e4f760

Please sign in to comment.