da JVS a tastiera PC

Guide, richieste e tutto ciò che c'è da sapere sui controlli del cab
Avatar utente
rufus
Cab-dipendente
Cab-dipendente
Messaggi: 637
Iscritto il: 08/03/2010, 16:33
Città: milano
Grazie Ricevuti: 3 volte

da JVS a tastiera PC

Messaggio da rufus »

Ok, magari a qualcuno può servire.
Ad oggi se volete collegare i comandi del vostro cabinato cablato JVS (volgarmente jamma 2) ad un PC avete 2 opzioni:
La JVS-PAC, che è decisamente costosina per quello che fa...
O un bellissimo progetto open nato da un'utente di questo forum, la JVSy, che però richiede un minimo di manualità tra saldature e componentistica.
Ho scoperto da poco una terza via, a mio avviso più semplice e molto economica, vi serve solo una adattatore seriale RS485 sul vostro PC a 4/5 euro.
Perchè il JVS pur usando il connettore USB è in realtà una seriale RS485
Nel link che segue trovate le istruzioni e l'immagine di un adattatore testato.

http://www.arcade-projects.com/forums/index.php?thread/1447-niko-s-jvs-tool-source-code-inside/&postID=40182#post40182

Ecco le isrtuzioni in inglese:

RE-Uploaded Niko's source setup to use keyboard.
https://mega.nz/#!5thiHBrb!SXGuljtAPTATKNpbJfTwrH_Xdbjd_QDUfcmlyHZ8JiA

For the non programmers.
You will need Visual Studio (VS). VS 2015 express will be fine and is free.

Once VS is installed open the file cjvs.sln.
This should open VS automatically.
On the right side panel you should see a file called key_config.h.
This is the file you will need to edit for your desired layout.

At the top of the file is a link to a site which has all the hex scancodes you can use.
Eg. the Enter key's scan code is 0x1C so
#define P1_START 0xFF would become #define P1_START 0x1C if you wanted to use Enter for start.

I have preset player one joystick to arrow keys as they require a little extra code in the main program file to work correctly.
Player 1 start + button 1 will execute what ever #define S_ESC is set to.
Once you have edited the file to your liking press CTRL + S to save the file.

Now on the top panel you will see 2 drop down boxes one saying debug and another x64.
You will need to change debug to release and x64 to x86.
Once you have them selected. click on build in the top bar menu and select build solution.
This will create a folder called release in the folder cjsv.sln is. Inside this folder is your program you can use.
cjvs.exe.

If you have any issues or questions don't hesitate to ask.

Also a big shout out to Niko for his jvs code he has done some amazing work with it.
Avatar utente
rufus
Cab-dipendente
Cab-dipendente
Messaggi: 637
Iscritto il: 08/03/2010, 16:33
Città: milano
Grazie Ricevuti: 3 volte

Re: da JVS a tastiera PC

Messaggio da rufus »

Ora i pigri che non vogliono compilarsi il codice sorgente con i propri tasti personalizzati, possono usare la mia configurazione

https://drive.google.com/file/d/0B2jCWEi986iATEN1aUFFRFlyR1U/view?usp=sharing

La cosa importante, la seriale 485 deve essere vista come COM 2, quindi nel caso usate Gestione Dispositivi in Windows per settarla nel modo corretto
Atlas
Newbie
Newbie
Messaggi: 34
Iscritto il: 01/10/2016, 23:25
Città: Lecco
Grazie Ricevuti: 2 volte

Re: da JVS a tastiera PC

Messaggio da Atlas »

Ciao, può funzionare se si utilizza BATOCERA che è basato su Linux ?
Rispondi

Torna a “Controlli (joystick, pulsanti, trackball, spinner, volanti, ecc...)”