Aller au contenu
ducon2016

Simulate X360 controllers when you just have a keyboard

Messages recommandés

Certains jeux ne vous laissent pas jouer au clavier, ou n'autorisent pas deux joueurs sur un meme clavier. X360KB est la solution!

 

Je partage ma modifications de l'excellent x360kb par PKT (http://www.capcom-unity.com/ask_capcom/go/thread/view/7371/18347559/SFIV_PC__2_players_on_keyboard&post_num=98?liveView=1)

 

1. Nouveau build avec fonctions manquantes

2. Fix du crash sur certains jeux et steam

3. Sans dinput qui reduit les problemes dans certains jeux

4. Build x64 pour les jeux en 64 bit

5. Meilleure compatibilite avec les jeux Unity (XInputGetStateEx est implemente maintenant)

6. Possibilite de bloquer les touches comme VJoy pour ne pas que le jeu reagisse deux fois a la meme touche. Mettre BlockKeys=1 dans x360kb.ini

7. Option pour fermer l'application avec une touche. Mettre CloseProcess=1 dans x360kb.ini et changez CloseKey=Esc par la touche que vous voulez utiliser

8. Supporte DirectInput 8 maintenant, donc plus besoin d'utiliser VJoy! Il suffit juste de copier dinput8.dll et x360kb.ini dans le repertoire de votre jeu et voila!

 

Pour utiliser:

 

1. Verifiez si votre jeu est x86 ou x64

2. Copiez tout les fichiers du repertoire dll ou dll-64 dans le meme repertoire que votre .exe

3. Editez x360kb.ini avec les touches que vous voulez utiliser

4. Lancez votre jeu. Si ca marche vous devriez entendre un bip windows

 

Le code source est inclus:

 

 

 

x360kb-noDinput.7z

Modifié par ducon2016
  • Like 3

Partager ce message


Lien à poster
Partager sur d’autres sites

Fichiers mis a jour dans le premier post:

 

1. Meilleure compatibilite avec les jeux Unity (XInputGetStateEx est implemente maintenant)

2. Possibilite de bloquer les touches comme VJoy pour ne pas que le jeu reagisse deux fois a la meme touche. Mettre BlockKeys=1 dans x360kb.ini

Modifié par ducon2016

Partager ce message


Lien à poster
Partager sur d’autres sites

Salut,

merci pour la découverte et partage. c'est du même style que x360ce ?

 

avis perso,

je trouve inconfortable d'ajouter des fichiers en + dans chaque jeux pour jouer, mais avis totalement perso, hein.

Dans certains cas hardware, c'est surement une bon soft (exemple si tu joue sur borne et que tu a un encodeurs Comme Xin-mo...

 

Par contre, j'ai l'habitude d'utiliser UCR - Universal Control Remapper

https://autohotkey.com/boards/viewtopic.php?f=19&t=12249

Tester et fonctionnel aussi sur plusieurs jeux SFIV, MKK, SFxTekken, Etc

J'avais fait un petit tuto sur son utilisation http://forum.hfsplay.fr/tutos-logiciels-annexes/ucr-universal-control-remapper-t13764.html#p207818

 

Pour dire,

si tu a aussi tester UCR, je suis pas contre un petit retours entre les deux.

 

MERCI

Partager ce message


Lien à poster
Partager sur d’autres sites

C'est pareil que x360ce sauf pour le clavier:

 

x360ce: dinput controller becomes x360 controller

x360kb: keyboard becomes multiple x360 controllers

 

Oui c'est pas comfortable SAUF que c'est juste copier deux fichiers: .ini et .dll, et que ca permet de ne pas installer de logiciel et c'est bien plus leger. En plus il y a toujours des ajustements a faire que UCR ne permet pas facilement. Par example Tricky Towers a besoin d'inverser le pad 1 et 2

  • Like 2

Partager ce message


Lien à poster
Partager sur d’autres sites

This is awesome, something i've been looking for ever since I built my arcade machine with a PC and J-pac, i'm surprised by how many PC based games lack the ability to share a keyboard for 2-players. I have tried this on Street Fighter 5, although there is a xinput_3.dll (I replaced it),I also get the ping noise when the game starts I don't see any controllers ? Any idea if Street Fighter 5 should work ? Awesome work ..

Partager ce message


Lien à poster
Partager sur d’autres sites
17 hours ago, anx10us said:

This is awesome, something i've been looking for ever since I built my arcade machine with a PC and J-pac, i'm surprised by how many PC based games lack the ability to share a keyboard for 2-players. I have tried this on Street Fighter 5, although there is a xinput_3.dll (I replaced it),I also get the ping noise when the game starts I don't see any controllers ? Any idea if Street Fighter 5 should work ? Awesome work ..

 

I just tested, it works perfectly fine with SFV:

 

1. Make sure you copy the x64 version of xinput1_3.dll

2. Copy the dll in the real .exe folder: StreetFighterV\Binaries\Win64\StreetFighterV.exe

3. Make sure x360kb.ini has BlockKeys=1

 

Modifié par ducon2016

Partager ce message


Lien à poster
Partager sur d’autres sites
11 hours ago, ducon2016 said:

 

I just tested, it works perfectly fine with SFV:

 

1. Make sure you copy the x64 version of xinput1_3.dll

2. Copy the dll in the real .exe folder: StreetFighterV\Binaries\Win64\StreetFighterV.exe

3. Make sure x360kb.ini has BlockKeys=1

 

Strange, I'm clearly doing something wrong, just followed your instructions, I get the ping sound, however the game no longer recognises any button or keyboard presses ...

11 hours ago, ducon2016 said:

 

 

Partager ce message


Lien à poster
Partager sur d’autres sites
2 hours ago, ducon2016 said:

The sounds does not mean it is hooked to the right process. Share the path of your .exe and your x360kb.ini.

Path = D:\Games\Street Fighter V - Arcade Edition\StreetFighterV\Binaries\Win64
[Options]
UseInitBeep=1
Log=1
BackgroundMode=1
PadCount=2
BlockRawInput=0
BlockKeys=1

[PAD1]
Start=1
Left Analog Left=
Left Analog Down=
Left Analog Right=
Left Analog Up=
Right Analog Left=
Right Analog Down=
Right Analog Right=
Right Analog Up=
D-Pad Up=Up
D-Pad Down=Down
D-Pad Left=Left
D-Pad Right=Right
A=v
B=b
X=z
Y=x
Left Shoulder=c
Right Shoulder=n
Left Trigger=
Right Trigger=

[PAD2]
Start=2
Left Analog Left=
Left Analog Down=
Left Analog Right=
Left Analog Up=
Right Analog Left=
Right Analog Down=
Right Analog Right=
Right Analog Up=
D-Pad Up=r
D-Pad Down=f
D-Pad Left=d
D-Pad Right=g
A=s
B=i
X=q
Y=w
Left Shoulder=a
Right Shoulder=k
Left Trigger=

 

Partager ce message


Lien à poster
Partager sur d’autres sites
9 hours ago, anx10us said:

Path = D:\Games\Street Fighter V - Arcade Edition\StreetFighterV\Binaries\Win64

[Options]
UseInitBeep=1
Log=1
BackgroundMode=1
PadCount=2
BlockRawInput=0
BlockKeys=1

[PAD1]
Start=1
Left Analog Left=
Left Analog Down=
Left Analog Right=
Left Analog Up=
Right Analog Left=
Right Analog Down=
Right Analog Right=
Right Analog Up=
D-Pad Up=Up
D-Pad Down=Down
D-Pad Left=Left
D-Pad Right=Right
A=v
B=b
X=z
Y=x
Left Shoulder=c
Right Shoulder=n
Left Trigger=
Right Trigger=

[PAD2]
Start=2
Left Analog Left=
Left Analog Down=
Left Analog Right=
Left Analog Up=
Right Analog Left=
Right Analog Down=
Right Analog Right=
Right Analog Up=
D-Pad Up=r
D-Pad Down=f
D-Pad Left=d
D-Pad Right=g
A=s
B=i
X=q
Y=w
Left Shoulder=a
Right Shoulder=k
Left Trigger=

 

 

Looks similar to mine. If the keyboard is no longer responding, it means the dll is definitely working and blocking keys. Is there anything useful in the log? Did you try to push the buttons mapped to Start? This looks like it should work, it works for me so not sure what is going on. May be the spaces in the path? Can you try to remove them and see if it works may be?

 

 

Partager ce message


Lien à poster
Partager sur d’autres sites
7 hours ago, ducon2016 said:

 

Looks similar to mine. If the keyboard is no longer responding, it means the dll is definitely working and blocking keys. Is there anything useful in the log? Did you try to push the buttons mapped to Start? This looks like it should work, it works for me so not sure what is going on. May be the spaces in the path? Can you try to remove them and see if it works may be?

 

 

Ok, just tried removing spaces, working directory is now 

Path = D:\Games\SFV\StreetFighterV\Binaries\Win64

Still no luck, also swapped Player 1 Start button for enter, nothing ...

 

I'm clearly missing something here ...

 

Where is the log file located ?

Partager ce message


Lien à poster
Partager sur d’autres sites
3 hours ago, ducon2016 said:

 

"x360kb logs" folder

 

I don't have that directory, what is the location ? merci  ;-)

Modifié par anx10us

Partager ce message


Lien à poster
Partager sur d’autres sites
13 hours ago, ducon2016 said:

D:\Games\SFV\StreetFighterV\Binaries\Win64\x360kb logs

Something weird is definitely happening, that directory doesn't exist, i've since tried a few things ..

 

  • Created the x360kb logs directory, ran game --> no log file
  • Deleted directory, downloaded old version of xinput (from 2009), ran game, still no controls but directory got created and log file written to ...
  • xinputtest.exe only works with the 32-bit dll ?

The only thing I haven't mentioned is i'm using the game offline (no network to arcade cabinet), so the very first dialog box I get on startup is "unable to connect to server" could it be that this dialog box is waiting for a specific key press that isn't mapped to the controller ?

 

 

Partager ce message


Lien à poster
Partager sur d’autres sites
6 hours ago, anx10us said:

Something weird is definitely happening, that directory doesn't exist, i've since tried a few things ..

 

  • Created the x360kb logs directory, ran game --> no log file
  • Deleted directory, downloaded old version of xinput (from 2009), ran game, still no controls but directory got created and log file written to ...
  • xinputtest.exe only works with the 32-bit dll ?

The only thing I haven't mentioned is i'm using the game offline (no network to arcade cabinet), so the very first dialog box I get on startup is "unable to connect to server" could it be that this dialog box is waiting for a specific key press that isn't mapped to the controller ?

 

> Deleted directory, downloaded old version of xinput (from 2009), ran game, still no controls but directory got created and log file written to ...

 

The old dll is 32 bit and cannot work with SFV .exe which is 64 bit. If you had a log it means you put the dll in the wrong folder.

 

> xinputtest.exe only works with the 32-bit dll ?

 

Yes

 

> The only thing I haven't mentioned is i'm using the game offline (no network to arcade cabinet), so the very first dialog box I get on startup is "unable to connect to server" could it be that this dialog box is waiting for a specific key press that isn't mapped to the controller ?

 

When you play without controllers, what do you usually do to pass that screen?

Modifié par ducon2016

Partager ce message


Lien à poster
Partager sur d’autres sites
3 hours ago, ducon2016 said:

 

> Deleted directory, downloaded old version of xinput (from 2009), ran game, still no controls but directory got created and log file written to ...

 

The old dll is 32 bit and cannot work with SFV .exe which is 64 bit. If you had a log it means you put the dll in the wrong folder.

 

> xinputtest.exe only works with the 32-bit dll ?

 

Yes

 

> The only thing I haven't mentioned is i'm using the game offline (no network to arcade cabinet), so the very first dialog box I get on startup is "unable to connect to server" could it be that this dialog box is waiting for a specific key press that isn't mapped to the controller ?

 

When you play without controllers, what do you usually do to pass that screen?

 

Ok definetly using the 64-bit dll, i'm on Windows 10, no log directory created, I usually press Enter/Return to get past the screen, I tried mapping Play 1 Start --> Return, no luck ..

 

 

Partager ce message


Lien à poster
Partager sur d’autres sites
1 minute ago, anx10us said:

 

Ok definetly using the 64-bit dll, i'm on Windows 10, no log directory created, I usually press Enter/Return to get past the screen, I tried mapping Play 1 Start --> Return, no luck ..

 

 

 

If you mapped Start to Return and used BlockKeys=1 the signal for the Return key will not reach the game anymore. That is expected behavior. Try with BlockKeys =0 if you want to use Return as start. But I recommend using a different key that might be simpler. PM me it will make this thread more focussed

Partager ce message


Lien à poster
Partager sur d’autres sites
On 4/6/2018 at 12:47 PM, anx10us said:

 

Ok definetly using the 64-bit dll, i'm on Windows 10, no log directory created, I usually press Enter/Return to get past the screen, I tried mapping Play 1 Start --> Return, no luck ..

 

 

 

Ok try again, I rebuilt and reuploaded to make sure this is the same version. It should work now, I think the previous version was not the updated one.

Partager ce message


Lien à poster
Partager sur d’autres sites

Je viens a peine de comprendre tout l'interet de ce soft. :o

 

Mais dommage pour moi, j'avais investit dans 2 pac-link de chez ultimarc car ça n'existait surement pas l'an passé.

 

A tous les possesseurs de borne ou même simplement de arcade stick... je vous le recommande.

Apres, ne l'ayant pas  testé, je ne peux pas dire si il est facile à utiliser.

Partager ce message


Lien à poster
Partager sur d’autres sites

Nouvelle version avec une option pour terminer l'application en cours avec une touche.

 

Mettre CloseProcess=1 dans x360kb.ini et changez CloseKey=Esc par la touche que vous voulez utiliser

Partager ce message


Lien à poster
Partager sur d’autres sites

New version integrating the excellent (but also over-engineered) Xidi library (https://github.com/samuelgr/Xidi) with x360kb and enabling simulating pads with keyboard for games only using DirectInput 8 (usually there is no xinput1_3 or xinput1_4 or xinput9 if you search in the .exe with a hex editor, but there is dinput8.dll).

 

Integrating both make it possible to just use ONE library: for those games just copy dinput8.dll and x360kb.ini in your game.exe folder and it should work. For example this makes it possible to play JLA (http://www.emuline.org/topic/1237-arcade-pc-justice-league-heroes-united-global-vr/) on the keyboard

 

Modifié par ducon2016

Partager ce message


Lien à poster
Partager sur d’autres sites

Créer un compte ou se connecter pour commenter

Vous devez être membre afin de pouvoir déposer un commentaire

Créer un compte

Créez un compte sur notre communauté. C’est facile !

Créer un nouveau compte

Se connecter

Vous avez déjà un compte ? Connectez-vous ici.

Connectez-vous maintenant

×