Jump to content


Virtual joystick


  • Please log in to reply
18 replies to this topic

#1 Jabberwock

Jabberwock
  • Guests

Posted 07 July 2004 - 05:43 AM

Is there a way to create a "virtual joystick" that would combine joysticks, keyboard scripts etc. into one controller?

If not, is such a feature planned?

#2 Chris

Chris
  • Administrators
  • 10727 posts

Posted 07 July 2004 - 11:50 AM

Although you can't yet simulate joystick movement or button presses, you can have a joystick send keystrokes or act as a mouse. If you want to use a keyboard or mouse as a joystick, I believe there is other software that can do that.

#3 BaldieJr

BaldieJr
  • Members
  • 23 posts

Posted 07 July 2004 - 04:22 PM

A virtual joystick would be incredibly usefull.

Personally, I'd like to be able to edit my sticks response curve and use hotkeys to switch pre-made responses on-the-fly. Axis shifts would also be handy (button3 + Xaxis = slider1_virtualstick1). While I'm dreaming: use a pair of sliders to alter X/Y axis center (for trim controls :) ) would be the icing on the cake.

I could think of new ideas all day :)

#4 Chris

Chris
  • Administrators
  • 10727 posts

Posted 07 July 2004 - 06:43 PM

Thanks I've made a note of those as potential features. :)

#5 BaldieJr

BaldieJr
  • Members
  • 23 posts

Posted 08 July 2004 - 02:11 AM

Awesome.

One problem though: Most games require a constant setting for a joystick. This might cause potential problems when you set out to code something up.

An example would be button+axis = virtual_axis. Once the button is released (returning the axis to its origional function), the virtual axis would have to maintain its set input.

Neat stuff, but probably complex to write.

Honestly though, being able to manipulate axis data on-the-go (axis shaping?) and allowing multiple responses would probably be the Ultimate Flight Sim Function, especially if it can be done with little overhead.

#6 Chris

Chris
  • Administrators
  • 10727 posts

Posted 08 July 2004 - 12:09 PM

Since it's so useful, maybe there are some joysticks -- especially those specialized for flight sims -- whose software already allows programming the buttons to alter the behavior of the axes.

#7 BaldieJr

BaldieJr
  • Members
  • 23 posts

Posted 08 July 2004 - 07:57 PM

I've not encountered any. Maybe the really expensive joysticks can do this.

I did find something of interest though: ppjoy.

It has a virtual joystick driver built into it, and is very customizable. It even includes an app that sends mouse data to the OS via the virtual stick.... instant free joystick.

Thats good enough for me :)

Any chance of getting the ability to send axis data to the virtual stick through autohotkey? The most elegant solution would be a virtual joystick driver provided by autohoykey, but hey, I'm not picky if I can accomplish what I want.

By the way: THANK YOU. I can't say it enough really. I wrote an loop-lock-unlock using two seperate keys but mulitple states (loop runs: Puase loop if key "X" is pressed, unpause if key "y" is pressed twice). I thought it was going to be difficult, but it was actually quite easy.

#8 BaldieJr

BaldieJr
  • Members
  • 23 posts

Posted 08 July 2004 - 08:13 PM

Docs on sending to virtual stick:

http://www.geocities... ... /IOCTL.htm



FYI: That site uses frames poorly.

#9 Chris

Chris
  • Administrators
  • 10727 posts

Posted 08 July 2004 - 10:06 PM

That's a nice site, thanks. It might be useful when the time comes to add joystick simulation (though hopefully that can be achieved without needing a special joystick driver, as this program appears to use).

#10 BaldieJr

BaldieJr
  • Members
  • 23 posts

Posted 09 July 2004 - 03:26 AM

Like I said, the more elegant solution would be low-level support via autohotkey, but if you can have autohotkey just talk to the ppjoy virtual joystick driver, I'd be happy as a pig in poo.

autohotkey could just read real_joystick_axis and send to virtual_joystick_axis (with altrerations, of course :) ).

I think any sim-junky willing to learn autohotkey would be willing to install ppjoy.

#11 kasun sanjeeva

kasun sanjeeva
  • Guests

Posted 02 June 2008 - 04:55 AM

Is there a way to create a "virtual joystick" that would combine joysticks, keyboard scripts etc. into one controller?

If not, is such a feature planned?



#12 midget35

midget35
  • Guests

Posted 26 November 2008 - 04:05 PM

Hi guys. Hope it's ok to bring up this age old thread. I just wanted to add a little on my experience on using PPJoy.

In principle - I love it! I hope to build an emulator frontend one day using a virtual joystick as a one stop shop for updating all emulator inputs when I install a new real world controller. The virtual controller would accommodate every imaginable number of buttons and joysticks, making it a piece of cake.

But PPJoy is very high maintenance - far from invisible, it is difficult to uninstall and difficult to use. Also - support across various ms operating systems is dodgy, and it has been abandonwear for some years.

When I saw the new ahk beta I got my hopes up that this might finally have been introduced. Saying that - the speed up is fantastic and I am delighted to see this is still in development at all. But the virtual joystick seems to be a very popular feature request and my last barrier before going ahead with this emulator frontend.

So that brings me to a question, having not heard much about this in recent months - has anyone stepped forward with the necessary skills to help implement this in ahk? if and when the time comes, I would be happy to offer my services for general testing and - when the 1st apps come off the back of it - usability testing and creating gfx cions and such.

thanks for any new info.

#13 Korni

Korni
  • Members
  • 1 posts

Posted 17 April 2009 - 01:08 PM

Hi, I would also like to know whether a "virtual joystick feature" will be implemented into AHK in the near future - that would be great :D

#14 Guests

  • Guests

Posted 25 April 2009 - 01:46 PM

Hi. I've just started using AHK. It's awesome, but this was the main thing I started using it for, and I wasn't expecting to find out it's impossible to do in the current AHK.

I would love to see this implemented in the near future, but thanks for the awesome program so far. :)

#15 Ohadik

Ohadik
  • Members
  • 27 posts

Posted 26 April 2009 - 05:48 PM

If you are wondering how to send key commands to a joystick it is extremely easy.

Just go into your joystick settings and find out how each key is numbered and then find the key you want and use it.

Example:
Joy1::
Joy2::

And so on...