Update for new caps in libratbag 0.6

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
Peter Hutterer
2017-04-24 15:07:10 +10:00
committed by bentiss
parent 53ff42ea55
commit 8944353716
3 changed files with 10 additions and 4 deletions

View File

@@ -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))

View File

@@ -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.