Skip to content

mouse right click when playing games #435

Description

@martin8877

Hi,
when I play strategy games on steam like Stronghold Definitive Edition and use global mouse strokes, my right mouse button is not working in game. Gestures with conditions like $window_class one_of [ firefox, google-chrome, org.kde.dolphin ] does not interfere with games and mouse is working as expected. Is it possible to tell inputactions that it should ignore mouse gestures when playing games?

mouse:
  gestures:
    # close window
    - type: stroke
      strokes: [ 'OAMAAUkEBRZZEgwkYCARMmA6GUBSViRPQGMrYyNkNLAOVT3DAzhH0AUdUOkYC1j2OQBkAA==' ]
      mouse_buttons: [ right ]
      actions:
        - plasma_shortcut: kwin,Window Close   

    # next song 
    - type: stroke
      strokes: [ 'A2QA1AwsE94eCSAoOGFA22AAZAA=' ] # draw N as next
      mouse_buttons: [ right ]
      actions:
        - plasma_shortcut: mediacontrol,nextmedia

    # previous song
    - type: stroke
      strokes: [ 'FWQAyxAzE9kZGB/qLQcp9D8AMQVNAjcnUxQ/NVEqSEVJNE1dLjlYoxIzZAA=' ] # draw P as previous
      mouse_buttons: [ right ]
      actions:
        - plasma_shortcut: mediacontrol,previousmedia

device_rules:
  - conditions: 
      all:
        - any:
          - $types contains mouse
    grab: true

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