Skip to content

triggerhappy doesn't accept modifiers based on ABS_Z or ABS_RZ #37

@cizia64

Description

@cizia64

Hi,

I would like to combine ABS_Z and ABS_RZ keys but triggerhappy doesn't seem able to parse modifiers when it's two analog triggers.
Is there a way to bypass this limitation ?

Working fine in test.conf:

###############
BTN_TL 1 echo L
BTN_TR 1 echo R
ABS_Z 255 echo L2
ABS_RZ 255 echo R2
#
BTN_TL+BTN_TR 1 echo R + L
BTN_TR+BTN_TL 1 echo L + R
#
BTN_TL+BTN_MODE 1 echo menu and L
ABS_Z+BTN_MODE 255 echo menu and L2

Not working in test.conf:

##############
BTN_MODE+ABS_Z 255 echo L2 and Menu
ABS_Z+ABS_RZ 255 echo L2 + R2 test1
ABS_RZ+ABS_Z 255 echo L2 + R2 test2
ABS_RZ+ABS_Z 1 echo L2 + R2 test3
ABS_Z+ABS_Z 255 echo L2 + R2 test4

Output:

thd  --triggers /mnt/SDCARD/test.conf /dev/input/event*
Unable to parse trigger line: BTN_MODE+ABS_Z 255 echo L2 and Menu
Unable to parse trigger line: ABS_Z+ABS_RZ 255 echo L2 + R2 test1
Unable to parse trigger line: ABS_RZ+ABS_Z 255 echo L2 + R2 test2
Unable to parse trigger line: ABS_RZ+ABS_Z 1 echo L2 + R2 test3
Unable to parse trigger line: ABS_Z+ABS_Z 255 echo L2 + R2 test4

(Thanks to share to great tool).
#31 @trurle any idea?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions