|
Post by kiriup on Oct 28, 2019 14:40:30 GMT
Hi I hope this is the right place to ask this.
I have managed to read my old joystick (cyborg 3d digital) though its gameport, with an arduino uno and i can feed the data to a vjoy device via the vJoySerialFeeder successfully. At this point i want to say i really appreciate the effort put into both of these awesome programs (vjoy and vJoySerialFeeder) without which my project wouldn't be possible! Thank you!
My only problem right now is that even though i can send all the button clicks to vjoy i cannot seem to find a way to get vjoy to recognize the POV hat buttons as hat buttons. I mean that vjoy sees the the hat clicks as normal buttons just like any other button on the joystick which makes the resulting vjoy joystick in windows a "4 axis 8 buttons" joystick instead of a "4 axis 4 button and 1 pov hat" joystick.
The way i see it my problem has 2 solutions:
a) In Vjoy somehow map 4 of the detected buttons to hat switches but i dont know how or if that is even possible in vjoy or b) Edit the vJoySerialFeeder to feed those button presses as hat presses to vjoy but i also don't know how to do this
I have gotten pretty good with arduino code and i can understand and edit the arduino code part of vJoySerialFeeder but beyond that i don't have any kind of C programing skills! Any help or ideas would be greatly appreciated, even of they involve coding that i don't know how to do. I am willing to take my time and learn to do it, so even just a pointer as to where i should start to get this done is very welcome!
I wanted to keep the initial post small so i didn't add many details so if you need more clarifications, details or the code that i have so far just let me know
Thanks in advance
Kiri
<svg class="SnapLinksHighlighter" xmlns="http://www.w3.org/2000/svg"> <rect width="0" height="0"></rect> <!-- Used for easily cloning the properly namespaced rect --> </svg>
|
|
|
Post by Shaul (Admin) on Oct 29, 2019 19:37:56 GMT
Kiri, I think that it is not a vJoy issue. vJoy supports POV hats. I am not familiar with vJoySerialFeeder but from the look of it it seems to support only Axes and buttons. You might try to change vJoySerialFeeder code or ask the developer to add support for POVs.
|
|
|
Post by kiriup on Oct 29, 2019 21:37:37 GMT
Hey Shaul
Thank you for replying!
I realized since i posted that vjoyserialfeeder doesnt support hats as is, so i should concentrate on adding hats to it. I could write the necessary code on arduino but the feeder part is beyond me. I downloaded the vjoy feeder sdk and tried to identify which parts of it where used in the vjoyserialfeeder source code, hopping i could just add the pov hat code from there but... yeah i know too little about C so i just got lost there.... I was hopping i would hear from him here but i guess that's just a shot in the dark...
As far as vjoy is concerned i just want to be sure i understand correctly. There is no way, (besides writing new feeder code) for vjoy to remap or reassign some of the detected buttons as pov hat triggers (through vjoyconf for example) . Right?
Kiri
<svg class="SnapLinksHighlighter" xmlns="http://www.w3.org/2000/svg"> <rect width="0" height="0"></rect> <!-- Used for easily cloning the properly namespaced rect --> </svg>
|
|
|
Post by Shaul (Admin) on Oct 30, 2019 6:23:05 GMT
As far as vjoy is concerned i just want to be sure i understand correctly. There is no way, (besides writing new feeder code) for vjoy to remap or reassign some of the detected buttons as pov hat triggers (through vjoyconf for example) . Right? Right. vJoy has a simple API where you write a value to a control (Button/Axis/POV). This is the role of the feeder. If the feeder does not implement this part of the API then that's that.
|
|
|
Post by kiriup on Oct 30, 2019 22:16:43 GMT
Ok I understand now. I will keep working on the feeder part! Thanks again for your help! I realized that even if i don't make the hat clicks to correspond to the vjoy hat-clicks and leave them as normal buttons i can still assign them in-game to the functions that i want and play normally... So now I'm starting to wonder why virtual pov hat buttons even exist? Still for my project to feel complete, i feel the need to do it right. When i manage to finish it i will share the entire project in case it will help anyone else with an old joystick in a similar situation.
<svg class="SnapLinksHighlighter" xmlns="http://www.w3.org/2000/svg"> <rect width="0" height="0"></rect> <!-- Used for easily cloning the properly namespaced rect --> </svg>
|
|