Author Topic: Vjoy button as hotkey  (Read 2624 times)

terrydew

  • Jr. Member
  • **
  • Posts: 54
Vjoy button as hotkey
« on: January 30, 2020, 11:11:49 AM »
Been away for a while so trying to catch up. I was excited to see more joystick support which allowed me to use a virtual joystick as one of my enabled joysticks but when I went to test (using the vjoy feeder program) none of the buttons were recognized? I want to use a virtual button as a hotkey so that I can use any hardware button (even though not enabled in VA) via another program that will generate vjoy button pushes.

Thanks
Terry

Gary

  • Administrator
  • Hero Member
  • *****
  • Posts: 2832
Re: Vjoy button as hotkey
« Reply #1 on: January 30, 2020, 11:20:56 AM »
I built an app just a couple days ago that acquires two vJoy stick instances and presses their buttons in a continuous loop.  I fired up VA and assigned the first available instance of vJoy as stick 2, and the second available instance of vJoy as stick 3.  Then, I added some commands to my profile that recognized button 1 presses from stick 2 and stick 3.  Continued the loop in the app and the buttons were recognized.

You'll want to make sure that your sticks are assigned properly - the feeder program will allow you to add several sticks that just show up as, 'vjoy device' or something like that.

terrydew

  • Jr. Member
  • **
  • Posts: 54
Re: Vjoy button as hotkey
« Reply #2 on: January 30, 2020, 01:19:48 PM »
Gary,

Thank you for the prompt reply. I think I may have a hosed install of vjoy. Thank you again for the extra joysticks.😀

Terry

Gary

  • Administrator
  • Hero Member
  • *****
  • Posts: 2832
Re: Vjoy button as hotkey
« Reply #3 on: January 30, 2020, 01:34:58 PM »
Thanks for the update, Terry.   At the end of the day, vJoy should work like any other stick when used with VA.



MOAR STICKS!!!!

https://open.spotify.com/track/2kVhHxpxXhWr5OuuBtMLME?si=l6fR9qHiSAyNcyDKEONWAg

terrydew

  • Jr. Member
  • **
  • Posts: 54
Re: Vjoy button as hotkey
« Reply #4 on: January 31, 2020, 11:57:28 AM »
Gary

I Got it to accept vjoy button for the hotkey at the global level but it will not recognize at the hotkey override profile level? I know vjoy is working now so could you please see if you can set at the profile level.

Thanks
Terry

Gary

  • Administrator
  • Hero Member
  • *****
  • Posts: 2832
Re: Vjoy button as hotkey
« Reply #5 on: February 01, 2020, 08:20:45 PM »
I'm able to set vJoy to a global hotkey (from Options > Hotkeys) and have VA toggle listening on and off.  I'm also able to override at the profile level (from Profile Options > Hotekeys) with a different stick and button and VA picks up the override. 

VA doesn't know the difference between a vJoy joystick press or a physical joystick press - it's all read from DirectX polling.

terrydew

  • Jr. Member
  • **
  • Posts: 54
Re: Vjoy button as hotkey
« Reply #6 on: February 02, 2020, 08:54:59 AM »
Gary,

Please forgive my being a pest but can you use another stick button at global and override at profile with a vjoy button or have different vjoy buttons for both?

Thanks
Terry

Gary

  • Administrator
  • Hero Member
  • *****
  • Posts: 2832
Re: Vjoy button as hotkey
« Reply #7 on: February 02, 2020, 02:31:49 PM »
Hold up - It's not a vJoy thing (trying with a hardware controller).  Works fine in the test screen and in the global hotkey situation, but if used in profile override mode it doesn't work all the time (which is weird, as this is the same screen for all three places).  When it works it works fine, but configuring it is a little bit off kilter.  I'll check it out.


Edit - This is just on sticks 3 and 4 for this screen - sticks 1 and 2 still work fine with vJoy.  Sticks 3 and 4 are having trouble no matter what (which I will fix right now).

Edit - Easy fix - just had to say that there were four sticks and not 2 from the profile options screen o_O

So, commands work for all sticks, global hotkeys work for all sticks, profile hotkeys work for all sticks but can only be configured to use either stick 1 or 2 (until just now).  I'll upload an, 'unofficial' build here in a sec.

Gary

  • Administrator
  • Hero Member
  • *****
  • Posts: 2832
Re: Vjoy button as hotkey
« Reply #8 on: February 02, 2020, 02:44:14 PM »
I uploaded v1.8.3.9 to the, 'unofficial' bin:   http://voiceattack.com/u

Just replace your current version of VA with that version (assuming you're using the standalone version).  Hoping that solves your profile override issue.

terrydew

  • Jr. Member
  • **
  • Posts: 54
Re: Vjoy button as hotkey
« Reply #9 on: February 03, 2020, 10:16:10 AM »
Gary,

That worked. Thank you!!!

Terry