Announcement

Collapse
No announcement yet.

PWM control of keypress for analog to direction pad mapping

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • PWM control of keypress for analog to direction pad mapping

    Hello. I was wondering if it's possible to simulate analog movement with typical WASD/directional key input via PWM (pulse width modulation) as well as frequency modulaiton of the key press relative to analog stick direction and deflection.
    Let's say we consider just X axis, as we deflect the joystick, we could start sending very short key press (A or D), starting with set maximum intervals (let's say 100ms), and then closer to the edge we shorten intervals as well as increase time of the keypresses till it's just full pressing the key. Now with another axis we could modulate between keypresses, so it would seem like micro-pushes in specific directions. Although perhaps on practice it would depend on game at hand if it would respond correctly to those micro key presses. Still, I think it would be worth trying such technique.

  • #2
    reWASD can remap any keyboard input to a stick's deflection on a single axis. When the key is released, the stick is automatically pulled back to the zero position.
    In the output device settings of your config, you can set the starting position (stick's dead zone), deflection speed, and deflection acceleration for that stick.
    The stick return speed is quite fast and cannot be set specifically, so you would have to control both the frequency of keyboard input and the key-hold timings.

    Comment


    • #3
      Originally Posted by Support Agent View Post
      reWASD can remap any keyboard input to a stick's deflection on a single axis. When the key is released, the stick is automatically pulled back to the zero position.
      In the output device settings of your config, you can set the starting position (stick's dead zone), deflection speed, and deflection acceleration for that stick.
      The stick return speed is quite fast and cannot be set specifically, so you would have to control both the frequency of keyboard input and the key-hold timings.
      What I'm suggesting is going extra mile with a mode where amount of deflection correspond to modulation of keypress duration and interval between continuous keypress, where full deflection removes intervals to have key fully pressed as long as deflection stays at max. This would allow for simulating smooth analog stick movement, where you can control speed and specific direction of movement just like with native joystick support.
      As it turns out Steam input actually have implemented this feature:
      Click image for larger version

Name:	image.png
Views:	138
Size:	207.9 KB
ID:	243568

      And it actually works really well in games that respond well to micro key-taps, So you can take que from this. We already have inner/outer deadzone control in ReWASD as well as ability to assign extra key for outer region (for instance adding shift for sprint at full deflection), so all that's needed is those two sliders to tune timings/intervals of keytaps

      Comment


      • #4
        Oh, you weren't talking about key-to-stick mapping, but about stick-to-key-tapping, so reWASD would tap/hold the key according to the deflection level of the stick.

        Noted. We will consider implementing this type of mapping in the future.

        Comment

        Working...
        X