Skip to content

Need help understanding configuration of press & release events #382

@rightpad

Description

@rightpad

Hello, I'm trying to bind my mouse back & forward buttons to left ctrl & left shift respectively. I want it where holding down the mouse button acts as holding down the corresponding modifier key, and vice-versa when released. I'm testing with wev, and my config currently sends the right inputs, but only on release rather than when held down. For example: I press and hold the mouse back button, and both leftctrl keyboard events don't get sent until after I release the button. I was wondering if I could be pointed in the right direction on how to fix this so that the events properly match.

mouse:
  gestures:
    - type: press
      mouse_buttons: [ back ]

      actions:
        - input:
          - on: begin
          - keyboard: [ +leftctrl ]
        - input:
          - on: end_cancel
          - keyboard: [ -leftctrl ]

    - type: press
      mouse_buttons: [ forward ]

      actions:
        - input:
          - on: begin
          - keyboard: [ +leftshift ]
        - input:
          - on: end_cancel
          - keyboard: [ -leftshift ]

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