KeyMapper icon indicating copy to clipboard operation
KeyMapper copied to clipboard

Support joysticks as triggers

Open sds100 opened this issue 6 years ago • 10 comments

https://developer.android.com/training/game-controllers/controller-input.html

See this issue for how to implement this https://github.com/keymapperorg/KeyMapper/issues/491

Requirements

  • [ ] Have a separate screen in the app for listing gamepad mappings. They can have multiple constraints.
  • [ ] Have a completely separate screen for configuring these mappings from the current one.
  • [ ] Does this interact at all with the current key map detection algorithm??

Buttons

  • [ ] Explain that the Key Mapper Keyboard must be selected for these to work
  • [ ] Remap DPAD
  • [ ] Remap left and right joysticks
  • [ ] Remap left and right triggers
  • [ ] Remap left and right back buttons
  • [ ] Remap extra buttons
  • [ ] Remap joystick buttons
  • [ ] Ability to change the trigger threshold/deadzone on the joysticks - how much must the user move it be triggered.

Actions

  • [ ] Assign actions to each button. Store as a list to give the option in the future of having multiple.
  • [ ] Minimize clicks to assign common actions, such as key codes - show common key codes at the top of the list?
  • [ ] Allow repeating actions
  • [ ] By default turn on the "hold down" option for key event actions.

sds100 avatar Jun 05 '19 13:06 sds100

nice. looking for a app for this. will test and send feedback.

eth0space avatar Jun 17 '19 00:06 eth0space

im kinda lost. where are the x-axis and y-axis so i could use it for swipes. i needed some apps to catch game controller inputs. and other apps are iritating cause of ads and restrictions.

eth0space avatar Jun 17 '19 11:06 eth0space

The app doesn't support it yet. This issue page is too remind me to add it at some point.

sds100 avatar Jun 17 '19 11:06 sds100

Combine this with Issue #200 and the Ability to Toggle Said Controls with a Controller Would Make a Very Nice Mouse Point for Users on either Android TV or more importantly, for a user of the Newly Released SwitchRoot LineageOS (for the Nintendo Switch), a much more welcome TV Mode Experience.

CarJem avatar Aug 02 '19 01:08 CarJem

Any progress on this issue? I took a look at the android dev page a while ago, but got a little confused how to incorporate the accessibility analog hooks into your code. (I'm not an android dev, I mostly know Python). I'd really like to get this feature in, so I can use KeyMapper to map analog input to keyboard keys and be able to use a bluetooth controller with games that require WASD style input, (RPG's where you tell your character to walk forward, backward, left, right, etc with a W, A, S, or D letter keys) or games that require analog to rotate a camera angle, etc

TrevorScheitrum avatar Mar 24 '20 00:03 TrevorScheitrum

No progress yet. Right now I'm working on the 2.0 release. Take a look at the project board for it. Gesture inputs will come soon after.

sds100 avatar Mar 24 '20 08:03 sds100

I would like to add that I have a Bluetooth ring that (for some insane reason) has it's forward and backwards buttons preform mouse swipe up and mouse swipe down actions and mouse click. I'm not sure if it's the same thing as joystick input, but I figured I would point out that this would really help. (If only to remap the keys to something sane like skip / back / play pause)

jcc10 avatar May 18 '22 01:05 jcc10

I would like to add that I have a Bluetooth ring that (for some insane reason) has it's forward and backwards buttons preform mouse swipe up and mouse swipe down actions and mouse click. I'm not sure if it's the same thing as joystick input, but I figured I would point out that this would really help. (If only to remap the keys to something sane like skip / back / play pause)

Wow, what 😂 How does doing a mouse movement in Android do anything useful?

sds100 avatar Jun 09 '22 17:06 sds100