Author Topic: Multiple Inputs - Keyboard & Gamepad  (Read 7173 times)

progets

  • Newbie
  • *
  • Posts: 33
  • Karma: +0/-0
    • View Profile
Multiple Inputs - Keyboard & Gamepad
« on: January 24, 2017, 10:20:13 AM »
Only one set of inputs is very limiting.

Pieter Hulshoff

  • Administrator
  • Hero Member
  • *****
  • Posts: 1543
  • Karma: +46/-14
    • View Profile
    • Towel 42
Re: Multiple Inputs - Keyboard & Gamepad
« Reply #1 on: January 24, 2017, 10:54:27 AM »
I currently have two implementations of this that I need to compare, and merge with the code base. It's coming. 😀

Sent from my SM-G920F using Tapatalk


KMetalMind

  • Newbie
  • *
  • Posts: 44
  • Karma: +1/-0
    • View Profile
Re: Multiple Inputs - Keyboard & Gamepad
« Reply #2 on: February 04, 2017, 08:43:54 AM »
This totally works on last version  :D

progets

  • Newbie
  • *
  • Posts: 33
  • Karma: +0/-0
    • View Profile
Re: Multiple Inputs - Keyboard & Gamepad
« Reply #3 on: February 05, 2017, 10:04:36 AM »
How is it done?

Pieter Hulshoff

  • Administrator
  • Hero Member
  • *****
  • Posts: 1543
  • Karma: +46/-14
    • View Profile
    • Towel 42
Re: Multiple Inputs - Keyboard & Gamepad
« Reply #4 on: February 05, 2017, 10:56:19 AM »
Simply separate the key commands using a , (no whitespace), e.g.:
left = Left,joy0Button7
right = Right,joy0Button5

PinealServo

  • Newbie
  • *
  • Posts: 30
  • Karma: +0/-0
    • View Profile
Re: Multiple Inputs - Keyboard & Gamepad
« Reply #5 on: February 05, 2017, 04:31:35 PM »
My patch for this borrowed a function from the config reader that would strip beginning and ending spaces from each element in the string without removing middle ones.  I'll try that out again later today.

cassette

  • Full Member
  • ***
  • Posts: 170
  • Karma: +1/-0
    • View Profile
Re: Multiple Inputs - Keyboard & Gamepad
« Reply #6 on: February 17, 2017, 02:51:28 AM »
I'm jumping on this thread since it's a similar request: I'd like a combination of inputs to do something. Particularly, it's such a small detail but it bothers me that this is the only program I have that I can't close with Alt+F4. I set it to exit to "F4", but I know for a fact that I don't need to press Alt+F4 to close it, just F4, so that bothers my OCD haha...

And also sometimes I pick up the mouse and instinctively rotate the wheel expecting it to do something, but then I remember there's no input called "WheelUp" / "WheelDown"... so that would be a nice addition I think.

Pieter Hulshoff

  • Administrator
  • Hero Member
  • *****
  • Posts: 1543
  • Karma: +46/-14
    • View Profile
    • Towel 42
Re: Multiple Inputs - Keyboard & Gamepad
« Reply #7 on: February 17, 2017, 07:05:26 AM »
I'll have a look. 😀

Sent from my SM-G920F using Tapatalk


cassette

  • Full Member
  • ***
  • Posts: 170
  • Karma: +1/-0
    • View Profile
Re: Multiple Inputs - Keyboard & Gamepad
« Reply #8 on: February 17, 2017, 07:57:37 AM »
Thanks!

walknight

  • Newbie
  • *
  • Posts: 24
  • Karma: +4/-1
    • View Profile
Re: Multiple Inputs - Keyboard & Gamepad
« Reply #9 on: April 21, 2020, 04:20:17 PM »
Sorry to dig an old thread...but I want to see if there's any update to the last request, specifically allowing key combos.

I like the MAME way of configuring keys. There you could have OR and AND to specify key bindings, like ESC OR Q OR Joy_Left AND Joy_Button0 AND Joy_Button9, in that way if I'm on a cab without a keyboard, I could exit by using the Left + Button0 + Button9 combo which has little chance to be triggered by accident.