Author Topic: Transferring a keyboard command to a joystick?  (Read 2678 times)

KuruptU4Fun

  • Guest
Transferring a keyboard command to a joystick?
« on: December 28, 2017, 03:28:45 PM »
I just DL'ed the latest version of VA, but noticed that the joystick buttons aren't being recognized I've verified they work in testing, just not when paired with a command.

Beyond that I had a question: With VA's ability to add commands to joysticks is there a way I can add a double tap command to a joystick button similar to the below?

Someone had asked how to create a double tap command using VA.
The key to making a macro work properly is timing, so you may have to fiddle with the hold down times a bit:

Code: [Select]
Press Left Shift key and hold for 0,03 seconds and release
Press Left Shift key and hold for 0,03 seconds and release
Press Left Shift key and hold for 5 seconds and release


I don't know how the afterburner works exactly, but if you have to hold down the shift key as long as you'd like it to fire, you can have one command press the key and hold it indefinitely, with another releasing it:

"Afterburner"
Code: [Select]
Press Left Shift key and hold for 0,03 seconds and release
Press Left Shift key and hold for 0,03 seconds and release
Press down Left Shift key

"Resume cruise"
Code: [Select]
Release Left Shift key

Pfeil

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4782
  • RTFM
Re: Transferring a keyboard command to a joystick?
« Reply #1 on: December 29, 2017, 12:48:13 AM »
Which version of VoiceAttack are you using? Testing with v1.6.9.2(the latest beta), and v1.6.9(the latest release), joystick buttons trigger commands when mapped to them, as they should.

Are you trying to send a joystick button to a game? You need this plugin for that, which uses vJoy to create a virtual joystick that can send button presses or axis data(It's not possible to send button presses from an existing joystick, DirectInput doesn't allow for that).