Skip to content

Commit

Permalink
Update device.py
Browse files Browse the repository at this point in the history
delay and repeat were swapped
  • Loading branch information
dani-hs authored Jan 15, 2025
1 parent 21dc595 commit f8ee702
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions evdev/device.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
# --------------------------------------------------------------------------
_AbsInfo = collections.namedtuple("AbsInfo", ["value", "min", "max", "fuzz", "flat", "resolution"])

_KbdInfo = collections.namedtuple("KbdInfo", ["repeat", "delay"])
_KbdInfo = collections.namedtuple("KbdInfo", ["delay", "repeat"])

_DeviceInfo = collections.namedtuple("DeviceInfo", ["bustype", "vendor", "product", "version"])

Expand Down Expand Up @@ -70,16 +70,16 @@ class KbdInfo(_KbdInfo):
Attributes
----------
repeat
Keyboard repeat rate in characters per second.
delay
Amount of time that a key must be depressed before it will start
to repeat (in milliseconds).
repeat
Keyboard repeat rate in characters per second.
"""

def __str__(self):
return "repeat {}, delay {}".format(*self)
return "delay {}, repeat {}".format(*self)


class DeviceInfo(_DeviceInfo):
Expand Down

0 comments on commit f8ee702

Please sign in to comment.