Jump to content

All my products and services are free. All my costs are met by donations I receive from my users. If you enjoy using any of my products, please donate to support me. My bare hosting costs are currently not met so please consider donating by either clicking this text or the Patreon link on the right.

Patreon

[RESOLVED] Slow/unpredicted joystick behavior when launching PinballX (Joy device 2)


Recommended Posts

Posted (edited)

I have issues with my 2nd joystick (virtual one), but assigned to my Stream Deck.
The virtual Joystick works fine.
I've setup joybuttons that are higher nubers than my virtuapin controller (18 and higher), because PinballX mixed these up (see my other post)

If I set for example button 21, 22,23 and 24, it works fine inside windows.
Pressing a button, will show a single click in the Joy interface as well.
Also the actions I assigned are working fine.

When launching PinballX, the vJoystick behavior will become "unpredicted"
Switching from PinballX to the windows joy console, I see that some presses are not registered, and other presses (just small clicks), keeps the button pressed too long

To show the behavior,  I made a small video from my cab (and resized the screen, to see the buttons and numbering)

I hope that this can be fixed, because there will open a new world for me if this is working fine :D 

(also when launching a VPX table from PBX, still the same behavior occurs, and launching VPX outside PBX, will let the Vjoy do the work correctly)

Edited by Mike_da_Spike
SOLVED
  • Mike_da_Spike changed the title to Slow/unpredicted joystick behavior when launching PinballX (Joy device 2)
Posted

This is the log from the moment I took the video
if I lower the numbers, the keys will respond to the device that is joy1 as well.
For example, my left flipper is joy1 button 1. If I set joy2 button 1 for another action and I press that key, the left flipper is also triggerd

Thats why I used the numbers above the 18 (that is not conflicting with my virtuapin controller)

This is also only in PBX, not outside PBX.

Because the joy buttons are slow and set to left flipper, the wheel is pretty fast at that moment

log.txt

Posted

Ill have a look at the code and see if I can see a bug with high button numbers. That's my only hunch right now.

For your information though PinballX is using directinput for game pads via SharpDx.

Posted
8 hours ago, Tom Speirs said:

Ill have a look at the code and see if I can see a bug with high button numbers. That's my only hunch right now.

For your information though PinballX is using directinput for game pads via SharpDx.

I did some extra testing, but looks like it is the Stream deck device that is conflicting with PinballX (on software level).
I lowered the Joy settings and that causes that Joy stick 2 buttons are  seen as Joystick 1 within PinballX.

Same behavior when pressing 1 on Joystick 2, it will take a long press or even lock it (I think the same issue as mentioned Controller issue (one press causes multiple presses) - General - Spesoft Forums (gameex.com)
Checking the Joy input, it is not receiving any input on Joy1, but all on joy2. But I see on Joy2 that keys pressing are getting slow or even stuck

On the stream desk I also mapped an button to the "P" key (just a send key) to pause a game
Outside PinballX , the button works as expected, but launching PinballX, the key press sometimes holds the key for multiple seconds (or even get it pressed, until I close PinballX and than it works like a charm


The Stream Deck is  a HID -compliant device. 
It uses software to translate the input keys to mapped actions. My assumption is that PinbalLX program conflicts with the software of the stream deck. 
Is PinballX doing some extra checks on keyboard input, or tries to overrule input (or something ?) 

The stream desk device is a really need device and bought it specially for the cabinet to extend my missing buttons (with no need off having a keyboard attached to the system)

Posted

OMG !
I will test further, but thought the issue was with PinballX, but I disabled all my plugins and now the device is working ....
So hold off @Tom Speirsto check code. Need to check which plugin this is causing it

EDIT : Ok, an apology from my site to @Tom Speirs is needed. The strange behavior is caused by "DirecectOutput Pinball X" plugin.  Disabling this plugin, makes the device working as it should be (but now I don't have the nice flashes/lights and effects)

Sorry Tom to put extra work to you. Never realized it could be a plugin ....

  • Like 1
  • Mike_da_Spike changed the title to [RESOLVED] Slow/unpredicted joystick behavior when launching PinballX (Joy device 2)
Posted

As I mentioned, this wasn't caused by PinballX (As I thought in the first place). Again ,sorry @Tom Speirs that I thought it has to do with your code.
It took me a couple of weeks (limited time as well), to investigate this one.

Noticed that when I enabled the DOF plugin from @swisslizard that the stream deck getting slow.
I grabbed the latest code from github (from MJR), but the plugin is there as well.
I was confused by the log file of the plugin, that even a single button press of the flipper results in multiple entries in the log file, but that's normal behavior.

When I made a test program , that only initiated the dof.dll , I didn't had any issue, but when I load the config for the table "PinballX" , I had the same strange behavior.
I noticed that this was caused by the initialization of my Teensy board (to control my LEDS).
The same happen when I launch an VPX table with the teensy enabled as well.

I tested it to changed the COM port of the Teensy to other ports, but same result

After a long search, I tried to put my Stream deck not attached to an USB hub, but a direct USB  port on the main board
I have USB hubs, because a lot of devices requires an USB port :

  • 2 external USB ports for  Keyboard and any other device (Kinect that is not internally attached)
  • 1 USB port for teensy board
  • 1 USB port External 7.1 sound card (SSF)
  • 1 USB port for my LEd-Wiz
  • 1 USB for my PinDMDv3
  • 1 USB for mouse
  • 1 USB port for Stream Deck

The PC only got 6 USB ports .....

Just an update for anyone who will face the same issue as I had

 

  • Like 2
Guest
This topic is now closed to further replies.
×
×
  • Create New...