How to use the keyboard to control joystick ?

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
Marcosa1020
Posts: 168
Joined: 23 Sep 2015, 19:15

How to use the keyboard to control joystick ?

Post by Marcosa1020 » 09 May 2016, 04:46

Hi there,
The basis of AHK content, I can use the joystick to control keyboard.
AHK: https://autohotkey.com/docs/misc/RemapJoystick.htm
Could you please tell me when I press the "A" key, what's on monitor continues moving leftward, and when I release the key,
it stops moving. I will grateful to you for helping me. Thank you.

User avatar
evilC
Posts: 4823
Joined: 27 Feb 2014, 12:30

Re: How to use the keyboard to control joystick ?

Post by evilC » 09 May 2016, 07:17

AHK is not capable of altering how apps or games see a physical joystick. Nothing (Apart from special drivers that comes with that stick) can do this.

Your only real option is to install a virtual joystick emulator such as vJoy.
You can then control the vJoy stick from AHK using my CvJoyInterface library.

I have also written a number of Gui Applications that let you remap Joysticks.

See UCR for an app that will let you remap keyboard keys to joystick axes & buttons.

Marcosa1020
Posts: 168
Joined: 23 Sep 2015, 19:15

Re: How to use the keyboard to control joystick ?

Post by Marcosa1020 » 09 May 2016, 08:57

evilC wrote:AHK is not capable of altering how apps or games see a physical joystick. Nothing (Apart from special drivers that comes with that stick) can do this.

Your only real option is to install a virtual joystick emulator such as vJoy.
You can then control the vJoy stick from AHK using my CvJoyInterface library.

I have also written a number of Gui Applications that let you remap Joysticks.

See UCR for an app that will let you remap keyboard keys to joystick axes & buttons.
Hi evilC,

I have installed one joystick, but I want to use the keyboard to control it. It is possible ?
I need more time to look your share. thank you so much for your prompt reply.

User avatar
evilC
Posts: 4823
Joined: 27 Feb 2014, 12:30

Re: How to use the keyboard to control joystick ?

Post by evilC » 09 May 2016, 11:35

"I have installed one joystick" - what do you mean? You have one real joystick plugged in? You have one virtual joystick?

As I said before, there is absolutely no way to have keyboard control a REAL joystick.

You can only have keyboard control a FAKE ("Virtual") joystick.

Marcosa1020
Posts: 168
Joined: 23 Sep 2015, 19:15

Re: How to use the keyboard to control joystick ?

Post by Marcosa1020 » 09 May 2016, 18:26

evilC wrote:"I have installed one joystick" - what do you mean? You have one real joystick plugged in? You have one virtual joystick?

As I said before, there is absolutely no way to have keyboard control a REAL joystick.

You can only have keyboard control a FAKE ("Virtual") joystick.
Hi evilC,

Yes, I have a real joystick. I have installed a joystick and computer in my equipment. Actually, when I moving the joystick then monitor will continues moving.
Now, I want to use the keyboard to control then to move monitor. No longer use the joystick.

I look at your share, it's too difficult for me. Could you please let me to easy use if it is possible.
Thank you.

Marcosa1020
Posts: 168
Joined: 23 Sep 2015, 19:15

Re: How to use the keyboard to control joystick ?

Post by Marcosa1020 » 16 May 2016, 23:36

Hi evilC,

How can I have the keyboard control a fake joystick? Could you please explain it ?
Thanks.

Marcosa1020
Posts: 168
Joined: 23 Sep 2015, 19:15

Re: How to use the keyboard to control joystick ?

Post by Marcosa1020 » 18 May 2016, 00:10

Hello guys,

Please tell me if you have any ideas. Many thanks.

User avatar
evilC
Posts: 4823
Joined: 27 Feb 2014, 12:30

Re: How to use the keyboard to control joystick ?

Post by evilC » 04 Apr 2017, 08:22

See my UCR app (Link in signature)
Use the ButtonsToAxis plugin

Map the keyboard as the input
Map the joystick axis as the output.

For one joystick, you will need two plugins - one for x, one for y


Post Reply

Return to “Ask for Help (v1)”