Skip to content

Commit

Permalink
FF: Update button box backends to match new spec
Browse files Browse the repository at this point in the history
  • Loading branch information
TEParsons committed Dec 4, 2023
1 parent 780d24f commit 32e1ad3
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions psychopy_labhackers/components/millikey.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@
from psychopy.localization import _translate


class MillikeySerialButtonBoxBackend(
DeviceBackend, key="millikeySerial", label="Labhackers Millikey (Serial)"
):
class MillikeySerialButtonBoxBackend(DeviceBackend):
"""
"""
key = "millikeySerial"
label = "Labhackers Millikey (Serial)"
component = ButtonBoxComponent

def getParams(self: ButtonBoxComponent):
# define order
Expand Down Expand Up @@ -60,9 +61,11 @@ def writeDeviceCode(self, buff):
buff.writeOnceIndentedLines(code % inits)


class MillikeyHIDButtonBoxBackend(
KeyboardButtonBoxBackend, key="millikeyHID", label="Labhackers Millikey (HID)"
):
class MillikeyHIDButtonBoxBackend(KeyboardButtonBoxBackend):
key = "millikeyHID"
label = "Labhackers Millikey (HID)"
component = ButtonBoxComponent

def getParams(self: ButtonBoxComponent):
# define order
order = [
Expand Down

0 comments on commit 32e1ad3

Please sign in to comment.