forked from drath/libratbag
Update for new caps in libratbag 0.6
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
@@ -82,7 +82,10 @@ def show_device(r, args):
|
||||
RatbagdDevice.CAP_SWITCHABLE_PROFILE : "switchable-profile",
|
||||
RatbagdDevice.CAP_BUTTON_KEY : "button-keys",
|
||||
RatbagdDevice.CAP_BUTTON_MACROS : "button-macros",
|
||||
RatbagdDevice.CAP_DEFAULT_PROFILE : "default-profile" }
|
||||
RatbagdDevice.CAP_DEFAULT_PROFILE : "default-profile",
|
||||
RatbagdDevice.CAP_QUERY_CONFIGURATION : "query-configuration",
|
||||
RatbagdDevice.CAP_DISABLE_PROFILE : "disable-profile",
|
||||
RatbagdDevice.CAP_LED : "led" }
|
||||
capabilities = [caps[c] for c in d.capabilities]
|
||||
|
||||
print("{} - {}".format(d.id, d.name))
|
||||
|
||||
@@ -88,8 +88,11 @@ class RatbagdDevice(_RatbagdDBus):
|
||||
CAP_SWITCHABLE_RESOLUTION = 1
|
||||
CAP_SWITCHABLE_PROFILE = 2
|
||||
CAP_BUTTON_KEY = 3
|
||||
CAP_BUTTON_MACROS = 4
|
||||
CAP_DEFAULT_PROFILE = 5
|
||||
CAP_LED = 4
|
||||
CAP_BUTTON_MACROS = 5
|
||||
CAP_DEFAULT_PROFILE = 6
|
||||
CAP_QUERY_CONFIGURATION = 7
|
||||
CAP_DISABLE_PROFILE = 8
|
||||
|
||||
"""
|
||||
Represents a ratbagd device.
|
||||
|
||||
Reference in New Issue
Block a user