PDA

View Full Version : Tool AutoHotkey and vJoy Script to allow mouse to be used with Keyboard



CemuUser8
13.09.2017, 14:42
Hello, I have taken an already existing mouse to joystick script created by Helgef (https://autohotkey.com/boards/viewtopic.php?t=21489) on the AutoHotkey forums and modified it to work with CEMU in a more streamlined way.

The script will allow you to control the virtual Joystick using your keyboard and mouse. The only keybinds that are hard coded into the script is that mouse movement is tied to the Right Stick, every other key is fully customizable. I've even created an interface that allows you easily set up your keys in a familiar manner.

Code and Releases can be found on GitHub (https://github.com/CemuUser8/mouse2joystick_custom_CEMU/releases)


The following guide has been adapted from my original Reddit post. (https://www.reddit.com/r/cemu/comments/5zn0xa/autohotkey_script_to_use_mouse_for_camera/)

[Updated Video - April 5, 2018] (https://www.youtube.com/watch?v=bOJy67OJfZI) that shows how to set this up. It is incomplete, but for the most part it shows the initial process very well. It doesn't get into details about anything, and while it recommends using the alternate mouse movement detection be aware that this is still experimental and already implemented slightly different from the version used in the video. Also, changing your mouse sensitivity will only really have an effect with this experimental mode, not really on the normal mode. Along the same lines, the sensitivity he has in the settings are invalid (negative values make no sense with how it is implemented and might even cause issues), but again since he is using the alternate method they have zero effect on the program.


For this to work you must have vJoy installed, I provide a compiled version of the AutoHotkey script, so AutoHotkey itself is not needed unless you want to run the script un-compiled.


Initial Setup

Install the latest vJoy (https://sourceforge.net/projects/vjoystick/files/latest/download)
Run the vJoy Configuration (http://i.imgur.com/vvHW0yz.png) (Not necessary if you only plan on using vXBox)
Set it up so it has at least 18 Buttons, I set mine to 32.
Download controller profiles (https://bitbucket.org/CemuUser8/files/downloads/vJoyControllerProfiles.zip) for CEMU > 1.9.0 (Also included in GitHub release zip)
Extract these text files into your CEMU controllerProfiles folder (https://i.imgur.com/Mf5L6km.png)
Then open CEMU and goto the input settings (http://i.imgur.com/N5Nibtq.png)
Choose the type of controller you want to use, either 'Wii U Pro Controller' or 'Wii U GamePad' (http://i.imgur.com/sfKWlgu.png)
If using standard vJoy Device
Choose DirectInput for the Controller API (http://i.imgur.com/KKCLqs8.png)
Make sure to choose the device as vJoy Device and confirm it says connected (http://i.imgur.com/Zx9pTmK.png)
If using vXBox Device
Run the script FIRST and choose 'Use vXBox Device' (https://i.imgur.com/s2TnMep.png) on the General Page of settings
If this is the first time you will be prompted to Install ScpVBus, choose yes, then yes again on the security prompt to run DevCon
Script will reload and if the message box doesn't show up again you should be ready to use vXBox.
Choose XInput for the Controller API (https://i.imgur.com/2sPQM3e.png)
Make sure to choose a controller and confirm it says connected (https://i.imgur.com/syOuO0f.png) (May need to press refresh for Controller to show up)
If it doesn't say connected try switching the vXBox device number in the script settings (https://i.imgur.com/3MC3B9L.png) one of them WILL say connected in CEMU (this seems to be a CEMU quirk as other applications don't care which vXBox device is selected it will always grab the active one)
Not sure if necessary but Press Calibrate (http://i.imgur.com/3E6UrZX.png)
Choose the appropriate Profile (https://i.imgur.com/zMdtNwy.png) for the type of controller you are setting up.
Click Load (http://i.imgur.com/PQFlfr1.png)

For vJoy devices -- The input setup should look like this (http://i.imgur.com/SvBR4BN.png)

For vXBox devices -- The input setup should look like this (https://i.imgur.com/ZAVpvMa.png)
Note: feel free to manually remap the blow mic and showscreen buttons here, as the vXBox controller doesn't have enough buttons for them to be included.

If it doesn't look like this, you are going to have a problem

Using the Script and changing the key mapping
Visit the GitHub release page (https://github.com/CemuUser8/mouse2joystick_custom_CEMU/releases) and download the latest release
Launch the script:
Double click the .ahk file if you have AutoHotKey installed.
Run the exe if you don't.
IF you don't want to customize anything you are ready to use the Script.
Press [B]F1 to toggle the controller ( CEMU and Script must be running )

Mapping your keys
Open the script settings by right clicking on the controller icon in your system tray (http://i.imgur.com/fPBWOsU.png) (Bottom Right) and choose 'settings'. (Or just Double click the icon)

Goto the Mouse2Joystick->Keys (http://i.imgur.com/eMMnEGj.png) page:

You can set the KeyList (http://i.imgur.com/JSJ1KsH.png) here

This is a comma separated list of AHK valid keys (https://autohotkey.com/docs/KeyList.htm) in order of vJoy Buttons
The first key is mapped to Button 0 and so on.
Manually setting the list has an advantage in that you can add more than one key to the same button (New as of 0.2.0.3)
This is accomplished by adding the keys together using the | symbol.
i.e. you'll notice Xbutton1|e, is what I have set for A -- allowing Mouse4 and e to both work.
I recommend setting up the keys with the Helper as below, then adding in any desired secondary keys manually.
KeyList Helper (http://i.imgur.com/VF2vwfE.png)

This is an interface that closely matches CEMU input layout (http://i.imgur.com/ewQL8ff.png), which will make it easy to create your KeyList.
You just need to click each box and then press the key you would like to use
Can be mouse buttons
AutoCycle will go through each key one by one allowing you to quickly set the keys
When you click save you will see the KeyList string update itself with any changes you've made.
If you'd like to add secondary keys now is a great time to do it.
Note: you can still keep KeyList strings for different games saved to a text file locally, and just paste it in (like it used to have to be done)

For an overview of the other settings check the original Reddit Post, or the GitHub ReadMe.

Script Downloads

GitHub Releases (https://github.com/CemuUser8/mouse2joystick_custom_CEMU/releases) will be the best place to find the latest version of the script


Alternate Direct Download (https://bitbucket.org/CemuUser8/files/downloads/mouse2joystick_Custom_CEMU.zip)

Or you can download it directly from the end of this post.


Extra Reminders

Changing your keys within CEMU isn't recommended as it is tedious and finicky. The script allows you to easily change which key is assigned to which vJoy button. Then the button assignment in CEMU doesn't matter at all as long as each key has something.
Note that the in-game camera settings affect the camera speed the most, so try changing there if camera speed is your only issue.
If you run CEMU as an admin, then you need to run the script as an admin as well.




Please feel free to comment here or on Reddit for help, or send me a PM.

Serfrost
15.09.2017, 18:16
Dang, nice formatting. +10

NAVras
21.09.2017, 18:42
With vXBox, mouse cursor doesn't hide and randomly triggers left click on cemu(which switch the video output to gamepad)
But it could be me having messed up the install, thought I no longer need vjoy so I uninstalled vjoy after scpvbus was installed and then reinstalled it (vjoy).
I tried to manually reinstall scpvbus, but it gave me 'devcon.exe failed'.

CemuUser8
21.09.2017, 18:54
With vXBox, mouse cursor doesn't hide and randomly triggers left click on cemu... thought I no longer need vjoy so I uninstalled vjoy after scpvbus was installed and then reinstalled it (vjoy).

Yes vJoy is still required as it is what provides the vGenInterface.dll, just an alternate interface, that I attempted to wrap myself based off evilC's original code.

If you enable the usevXbox setting and run the script does it ask you to install the ScpVBus still? if not then it must already still be installed correctly.

I'm not sure why the script would stop acquiring the mouse any differently from previous versions, I've not encountered that in my testing. Do other keys, and mouse movement still work, just hiding and clicking broken?


I did already update to version 0.3.0.1 because I noticed an AND instead of an OR in one of the vXBox button presses, causing strange behavior maybe that is related if the problem starts when pressing one of the thumb buttons?

Let me know, as I want to make this to work as it opens up my script for much more than just CEMU even, XInput is used by a lot, and I've already tested in STEAM Big Picture and it looks promising.




Edit: If everything looks good outside of CEMU can you try going to html5gamepad.com (http://html5gamepad.com/) and enabling the controller (Still F1 by default) and seeing if it picks up XBOX 360 Controller
47

NAVras
21.09.2017, 19:14
It didn't ask, guess I don't need to worry then~
48

Anyway, found I just need to restart my computer... cursor now hides, testing left clicks with a lynel xD
Edit: hmm.. random left click still there

CemuUser8
21.09.2017, 19:23
Edit: hmm.. random left click still there

Ok, I will do some more testing myself, just randomly clicking, and clicking as fast as possible. See if I can replicate the problem.

I assume the problem doesn't occur if not using vXBox?


Edit: I can't seem to reproduce the issue at all, I will test again on my Desktop at home, where I get better frames and will have more time.

NAVras
21.09.2017, 19:49
Oh no, still got the same problems without vxbox, tested with two mouses.
Strange thing is that, if i power off then on my pc, cursor won't hide, but if i restart, it will...
I'll try using a different usb port and reinstalling mouse driver.

Here's my keylist, if it helps:
e,LAlt,Space,Lbutton,q,3,LShift,RButton,Enter,Back space,1,2,y,n,g,j,b

Edit:
49yea i don't have space in between
50cemu input setting

It seems the left click is not caused by my mouse but keyboard?? I get those left clicks when pressing backspace and enter(can't reproduce enter)
https://streamable.com/djyev

CemuUser8
21.09.2017, 20:02
Oh no, still got the same problems without vbox, tested with two mouses.
Strange thing is that, if i power off then on my pc, cursor won't hide, but if i restart, it will...
I'll try using a different usb port and reinstalling mouse driver.

Here's my keylist, if it helps:
e,LAlt,Space,Lbutton,q,3,LShift,RButton,Enter,Back space,1,2,y,n,g,j,b

That is certainly very strange behavior... I'm not a fan of how I hide the mouse cursor, but have yet to find a better way that works. Although in this case it seems like something else is going on as well.

I'm not sure if it is the forum formatting strangely but when I copy paste your keylist I get: Back space instead of Backspace. I don't see how that could cause your issues, so if it really does have that extra space there it's probably not related.



It seems the left click is not caused by my mouse but keyboard?? I get those left clicks when pressing backspace and enter(can't reproduce enter)
https://streamable.com/djyev

Very Interesting, I will play around with your keylist later tonight.

PS. Other quick thought, do you happen to have any other AutoHotkey script running, or anything else that would intercept input?

NAVras
21.09.2017, 21:53
hmm... i don't?
(just tested, i don't get this problem with 0.2.0.3 tho)

CemuUser8
21.09.2017, 22:44
hmm... i don't?
(just tested, i don't get this problem with 0.2.0.3 tho)

Good to know, I will do a code compare and see what I changed that could've introduced this bug. I know I added a lot of logic, I wonder if the button press code can take too long now? Not sure but will look into it.

Thank you for your feedback, and willingness to test.

Edit: So in version 0.2.0.3 there was an invisible window created by the script that overlayed the CEMU window. This would then be what received any fall through clicks I guess, however on my two computers I was never able to reproduce your bug so this is only a hypothesis.

I removed that feature because it's sole purpose was to hide the cursor, however I was unable to make gyro controls work for aiming when it was present. I had switched the method of hiding the cursor, and thus removed the invisible GUI at the same time. I will work on making another solution to cover this case, even though it should in theory never be able to happen ( All Clicks should be intercepted by the script )


Edit 2: Updated again to v0.3.1.0 which re-added the invisible window overlay. Should resolve this strange case.

NAVras
22.09.2017, 15:57
yes the new version fixed this it seems, no left click since i updated it~

CemuUser8
22.09.2017, 16:43
yes the new version fixed this it seems, no left click since i updated it~

Great, thank you again for being a quick tester. Let me know if you run into any other bugs.

I'm working on integrating the vXBox option into the settings GUI to make it easier to switch between the two, and make the option more visible.

vecst
02.10.2017, 03:40
I've got pretty much everything running pretty great, the only problem I have is when I hold right click I lose the ability to move the camera. If I toggle f1 twice I can move the camera again while leaving the bow pulled. has anyone else experienced this?

CemuUser8
02.10.2017, 14:39
I've got pretty much everything running pretty great, the only problem I have is when I hold right click I lose the ability to move the camera. If I toggle f1 twice I can move the camera again while leaving the bow pulled. has anyone else experienced this?

I haven't seen that happen, or have anyone else report that bug to me. What version of the script are using, and what settings? Does it appear that the whole thing stops working or just the camera control? Are you using the vXBox feature, or standard vJoy?

vecst
02.10.2017, 16:53
I haven't seen that happen, or have anyone else report that bug to me. What version of the script are using, and what settings? Does it appear that the whole thing stops working or just the camera control? Are you using the vXBox feature, or standard vJoy?

Seems to be only camera control, any other button still works and interacts with the game. I can press and hold any other button and this doesn't happen. I'm using the standard vJoy. I didn't see the script version anywhere, when I opened the ahk file it does say that it was last modified on 2017-09-24. I downloaded the master from github 3 days ago.

CemuUser8
02.10.2017, 19:49
Seems to be only camera control, any other button still works and interacts with the game. I can press and hold any other button and this doesn't happen. I'm using the standard vJoy. I didn't see the script version anywhere, when I opened the ahk file it does say that it was last modified on 2017-09-24. I downloaded the master from github 3 days ago.

I sometimes forget to update that line, but it sounds like you have a very recent version ( it should say the actual version on the title bar of the settings window ). That is strange, Do you mind telling me what mouse you have and if it has special driver software? I've seen in the past that Razer has interfered with some mouse capture, like if it is trying to do something special on long right clicks.

Also just to check functionality when using the standard vJoy option it is helpful to have the 'Monitor vJoy' program running and hopefully you will see that it stops moving the axes around as well. It will be helpful in diagnosing to know that info if possible.

Edit: I did also make a new release today, but it isn't very different from what you have, so I don't think it will fix the issue but is worth upgrading.

vecst
02.10.2017, 21:29
I sometimes forget to update that line, but it sounds like you have a very recent version ( it should say the actual version on the title bar of the settings window ). That is strange, Do you mind telling me what mouse you have and if it has special driver software? I've seen in the past that Razer has interfered with some mouse capture, like if it is trying to do something special on long right clicks.

Also just to check functionality when using the standard vJoy option it is helpful to have the 'Monitor vJoy' program running and hopefully you will see that it stops moving the axes around as well. It will be helpful in diagnosing to know that info if possible.

Edit: I did also make a new release today, but it isn't very different from what you have, so I don't think it will fix the issue but is worth upgrading.

I'm at work right now I'll have to look when I get home. I'm using a gigabyte Aivia Krypton mouse, It does have special driver software, but I don't have any of it installed. I thought about updating my mouse drivers just to see if that would get it, but haven't had the time yet.

vecst
03.10.2017, 01:39
...Edit: I did also make a new release today, but it isn't very different from what you have, so I don't think it will fix the issue but is worth upgrading.

What ever you did fixed it, I'm not having a single issue with it now. Thanks so much for all your hard work! I love being able to play BOTW with mouse and keyboard just feels so much more natural.

d asap
13.10.2017, 04:20
why my key mapping doesnt work? in the app, it shows the proper controller. but, i cant click correctly

d asap
13.10.2017, 06:57
ah! i think i have found the problem. there is no key for "," and "." right? i input those keys in the config :v

CemuUser8
13.10.2017, 13:07
ah! i think i have found the problem. there is no key for "," and "." right? i input those keys in the config :v

"." Should work, however you are correct "," probably doesn't work, since it is a comma separated list. It would just parse an empty button around it. Hmm I will look into making a way to allow the comma to be mapped, thank you for the feedback.

ExsertWizard684
15.10.2017, 18:39
Your script tends to decrease my BOTW performance by -10-15fps and increases stutter in gameplay if its toggled on. I tried setting the CPU priority to low and affinity of your program to use cores not used by cemu 1.10.0f but still the same result.

CemuUser8
15.10.2017, 19:09
Your script tends to decrease my BOTW performance by -10-15fps and increases stutter in gameplay if its toggled on. I tried setting the CPU priority to low and affinity of your program to use cores not used by cemu 1.10.0f but still the same result.

I've seen this reported before, It definitely doesn't do that for me, and it is rarely reported so I don't think it happens for most.

If you have the task manager open, what % CPU is the mouse2joystick_custom_CEMU.exe ( or AutoHokey.exe if using the uncompiled version ), and how much memory is it using?

I'll go back through messages and comments and see if we ever found a solution, it might be worth trying to re-install vJoy as maybe there is something weird going on there.

Edit: Here is a link (https://www.reddit.com/r/cemu/comments/5zn0xa/autohotkey_script_to_use_mouse_for_camera/dle0p6b/) to one of the only other times I've had this reported. It was initially thought to be tied to using Cheat Engine SpeedHack, but then later he said it was happening even without, and we never figured out the cause.

What are your system specs? Also can you test this attached version and let me know if there is any difference?

ExsertWizard684
16.10.2017, 03:23
I've seen this reported before, It definitely doesn't do that for me, and it is rarely reported so I don't think it happens for most.

If you have the task manager open, what % CPU is the mouse2joystick_custom_CEMU.exe ( or AutoHokey.exe if using the uncompiled version ), and how much memory is it using?

I'll go back through messages and comments and see if we ever found a solution, it might be worth trying to re-install vJoy as maybe there is something weird going on there.

Edit: Here is a link (https://www.reddit.com/r/cemu/comments/5zn0xa/autohotkey_script_to_use_mouse_for_camera/dle0p6b/) to one of the only other times I've had this reported. It was initially thought to be tied to using Cheat Engine SpeedHack, but then later he said it was happening even without, and we never figured out the cause.

What are your system specs? Also can you test this attached version and let me know if there is any difference?

Heres a video using the mouse2joystick from github release, using CEMU 1.10.0f + Xalphenos Dynamic FPS Mod. "Control using Wii U Gamepad" is mouse2joystick toggled on, "Control using Wii U Pro Controller" is script toggled off.

https://streamable.com/ezwvy

Specs:
Intel Core i7-7700HQ@2.8-3.8GHz
16GB DDR4 2400Mhz
NVIDIA GeForce GTX 1060 6GB

ExsertWizard684
16.10.2017, 03:38
Just tested the TEST version, same issues -10fps decrease and stutter when toggled on.

ExsertWizard684
18.10.2017, 04:36
Your script tends to decrease my BOTW performance by -10-15fps and increases stutter in gameplay if its toggled on. I tried setting the CPU priority to low and affinity of your program to use cores not used by cemu 1.10.0f but still the same result.

Somehow the issue has gone away by updating to the fall creators update. Thanks anyway. I'll test further to see if this issue still persists.

CemuUser8
18.10.2017, 13:04
Somehow the issue has gone away by updating to the fall creators update. Thanks anyway. I'll test further to see if this issue still persists.

Thank you for letting me know. I've been working on an alternate method of mouse detection to test, but it hasn't been going well - I may just put that on pause for now.

I wish I knew the actual cause so I could improve, but it might have something to do with how the Creator's Update changed the process priorities of background programs, not sure.

d asap
18.10.2017, 13:56
"." Should work, however you are correct "," probably doesn't work, since it is a comma separated list. It would just parse an empty button around it. Hmm I will look into making a way to allow the comma to be mapped, thank you for the feedback.

oh, no problem :)

ExsertWizard684
19.10.2017, 23:44
My testing so far: from what I have tested in many different areas in BOTW, i only saw 1-2 fps difference when using the script or not. Also, the script didn't stutter the game.

Sobakaa
22.10.2017, 01:05
I have a weird problem with XInput specifically - cemu won't show me any XInput controllers in the drop down list:
132
133

I've tried all 4 vXbox devices, but that didn't change anything. Any clue to what can cause this? DInput is working fine, but mouselook is pretty much unusable due to that deadzone bug.

CemuUser8
22.10.2017, 13:12
I have a weird problem with XInput specifically - cemu won't show me any XInput controllers in the drop down list:
...
I've tried all 4 vXbox devices, but that didn't change anything. Any clue to what can cause this? DInput is working fine, but mouselook is pretty much unusable due to that deadzone bug.

I know that it requires the drivers for a 360 controller to be installed, which is supposed to happen automatically in Windows 10. However in older versions of Windows it needs to be installed Manually. (https://www.microsoft.com/accessories/en-gb/d/xbox-360-controller-for-windows)

I noticed the icon for my program is wrong in your screenshot, and since it pulls the icon from Windows, I'm curious what version you are running. I know it works on my version of 10 (1703 build 15063.674) but it doesn't seem to for you.

Also you can goto this site (http://html5gamepad.com/) to test if the controller is working, just turn off auto activate executable, then toggle the script on and press your assigned keys, the website should detect any controllers.

Should look like this:
134

Let me know, if any that is helpful. I can help you troubleshoot other things if not.

Sobakaa
22.10.2017, 17:18
What worked for me was the lastest x64 version of VBus. The one included in your distribution is x86 (it won't even run on my x64 system) and the one suggested on vJoy site is outdated (even if i install the driver it doesn't work). This one https://github.com/shauleiz/ScpVBus/releases/tag/v1.7.1.2 did the trick.

So cemu can now see the virtual controller, however, i cannot activate the wiiu gamepad profile, only the pro one. I've made a small demonstration:
https://imgur.com/a/WUkvc

CemuUser8
22.10.2017, 17:50
What worked for me was the lastest x64 version of VBus. The one included in your distribution is x86 (it won't even run on my x64 system) and the one suggested on vJoy site is outdated (even if i install the driver it doesn't work). This one https://github.com/shauleiz/ScpVBus/releases/tag/v1.7.1.2 did the trick.

So cemu can now see the virtual controller, however, i cannot activate the wiiu gamepad profile, only the pro one. I've made a small demonstration:
https://imgur.com/a/WUkvc

I can tell from the version of my script that you are using the source code version, which I am happy to see. And you must have the 64bit version of Autohotkey installed.

However, you point out a big improvement I can make; My compiled version of the script is 32bit, and since CEMU requires 64bit anyway I should be able to assume that everyone has a 64bit system. In future releases I will be sure to include a version for both 32bit and 64bit and that would avoid this issue in the future.

Also for your new problem, if you open the txt file for that profile does it correctly say XInput? or does it say keyboard in there as well?



I will also make sure to update to the latest version of ScpVBus, I just blindly accepted the version evilC's UCR was using without digging into it, thank you for that info.

Sobakaa
22.10.2017, 18:21
Also for your new problem, if you open the txt file for that profile does it correctly say XInput? or does it say keyboard in there as well?
As expected from someone who knows his code you were able to find the problem just by looking at the symptoms :-) The profile indeed had "api = keyboard" in it, not the original "XInput". Must be my mistake from accidentally pressing Save button in cemu with keyboard selected. Thx for all the support.

d asap
20.11.2017, 03:46
uh... is it hard to have a salto (yeah, a backward jump) in botw? its a little tricky to do and i need it to fight Lynel (to having some flurry rush combo :) )

CemuUser8
20.11.2017, 15:36
uh... is it hard to have a salto (yeah, a backward jump) in botw? its a little tricky to do and i need it to fight Lynel (to having some flurry rush combo :) )

I think the difficulty would only come from your selected key-binds. For me there is no issue, I just hold Left Control to lock on, then move backwards with S, then press Space to jump.

d asap
21.11.2017, 02:07
I think the difficulty would only come from your selected key-binds. For me there is no issue, I just hold Left Control to lock on, then move backwards with S, then press Space to jump.

Oh, let me try. thanks ;)

d asap
22.11.2017, 01:11
still same :( . is there any difference between xBox and vJoy?

CemuUser8
27.11.2017, 14:13
There is no difference in how each controls, only in the setup and behind the scenes.

My best guess is that your keyboard can't handle so many keys being pressed at the same time. (Rollover (https://en.wikipedia.org/wiki/Rollover_(key)))

If that is the case, then there is nothing I can change in the program to help you. If it is not, then I'm honestly not sure why you are having trouble as it has never been an issue for me, and not reported before.

d asap
02.12.2017, 07:54
but, it works fine while im disabling the tool and using keyboard instead

ExsertWizard684
11.12.2017, 03:44
Can you add this option to toggle when riding the Master Cycle Zero, to switch the W key from left stick to the A button and the S key to the B? Since now accelerating the motorcycle requires to press the A button, B for braking and it feels weird to press the assigned key rather than W or S (which normally in PC games you accelerate the car by pressing W and brake/reverse with S.). This may also help in Mario Kart 8, which also requires a button of the controller to accelerate and brake rather than pressing W/S.

CemuUser8
11.12.2017, 13:00
Can you add this option to toggle when riding the Master Cycle Zero, to switch the W key from left stick to the A button and the S key to the B? Since now accelerating the motorcycle requires to press the A button, B for braking and it feels weird to press the assigned key rather than W or S (which normally in PC games you accelerate the car by pressing W and brake/reverse with S.). This may also help in Mario Kart 8, which also requires a button of the controller to accelerate and brake rather than pressing W/S.

I will definitely look into adding that feature for you, I think you are right it would be useful even for other games. Thank you for the suggestion.

loadinator
14.12.2017, 16:25
Is there a tutorial to get this working with Playstation Now? you did mention that it is compatible but i have no idea on how to setup, i have vJoy and x360ce installed.

CemuUser8
14.12.2017, 16:39
Is there a tutorial to get this working with Playstation Now? you did mention that it is compatible but i have no idea on how to setup, i have vJoy and x360ce installed.

At the bottom of the ReadMe on GitHub is a short description for rpcs3, it should be similar to that. The only setup that needs to be done is using the vXbox mode (simulating an Xbox 360 controller) and have activate executable set to 'No'. Then it will just always activate when you press the toggle key (F1 by default) and start controlling a virtual xbox controller, which should be recognized in PlayStation Now.

loadinator
14.12.2017, 18:54
Thanks for that, will give it a try when i do the Playstation Now free trial. I also just tested this on Cemu and is working brilliantly, much better than what i had before lol.

loadinator
19.12.2017, 23:51
Is it possible to remap the keyboard movement to axis? i'm using a Playstation Move Navigation Controller with a mouse, it would be nice to have the sensitivity of the stick rather than full on movement that you get with WASD. Also can you reverse the movement for mouse wheel scroll to change weapon?

loadinator
23.12.2017, 15:01
Just tested it with Playstation Now and it isn't working, i followed your instructions and remembered to toggle the controller on but no controller was recognised.

loadinator
23.12.2017, 21:32
Never mind, it works when using x360ce. It seems as though Playstation Now requires an controller settings file (x360ce) to be placed within it's directory folder in order for it recognise a simulated x360 controller. So i used vJoy + Mouse2Joystick + x360ce.

schmuggla
02.01.2018, 05:11
thank you very much for your work! everything seems to work just fine, exept one thing: i cannot move. all the keys (like crouching etc) work fine, but link stands still - he won't move. any ideas?

CemuUser8
02.01.2018, 14:39
thank you very much for your work! everything seems to work just fine, exept one thing: i cannot move. all the keys (like crouching etc) work fine, but link stands still - he won't move. any ideas?

In your CEMU input settings make sure the dead-zones are low (1-10%), also make sure you are using the latest version of both the script, and CEMU as there were dead-zone bugs that have been fixed at some point.

schmuggla
02.01.2018, 17:40
In your CEMU input settings make sure the dead-zones are low (1-10%), also make sure you are using the latest version of both the script, and CEMU as there were dead-zone bugs that have been fixed at some point.

thank you for your quick reply. unfortunately all your suggestions already applied to my setup. but i already found a solution - i use the vxBox output instead of the vJoy.

if everything could be that easy ... :)

DylanJacob
23.01.2018, 15:11
I have followed all of the steps exactly, but when I open input settings in cemu and click on the drop-down menu for profile, nothing shows up.

CemuUser8
23.01.2018, 17:08
I have followed all of the steps exactly, but when I open input settings in cemu and click on the drop-down menu for profile, nothing shows up.

Make sure you've extracted the controller profile text documents to the correct location. Which would be the "controllerProfiles" folder in your CEMU directory.

Twizp
23.02.2018, 13:15
I just tried vJoy out and everything works perfectly. However, the + and - from CEMU don't work, no matter what key I attach to mouse2joystick on them it won't open the menu or the map.
Camera works fine and every other input as well, what might be wrong?

loadinator
24.02.2018, 20:00
I'm using this for a PC game, the game is designed for an 360 controller so i use x360ce with this. Controls are fine but problem is that the game keeps pausing, any idea on what might be causing this?

CemuUser8
25.02.2018, 02:14
I just tried vJoy out and everything works perfectly. However, the + and - from CEMU don't work, no matter what key I attach to mouse2joystick on them it won't open the menu or the map.
Camera works fine and every other input as well, what might be wrong?

That is weird, I've not experienced selected keys not working. I'd make sure that you have set up vJoy with enough buttons in the config, and double check in CEMU input settings that it looks like +/- have keys mapped that say "Button"


I'm using this for a PC game, the game is designed for an 360 controller so i use x360ce with this. Controls are fine but problem is that the game keeps pausing, any idea on what might be causing this?

I'm not sure on this, what key is mapped the start/pause key in game? Have you tried using the builtin vXbox? it simulates an Xbox 360 controller directly, and you won't need to use x360ce at all.

loadinator
18.03.2018, 23:03
I understand why vXbox wasn't working, i had to install ScpVBus which i thought i already had. Problem is i'm having trouble with keyboard movement, these are ok in BOTW but in other games when i try moving forward or right then it's slow, moving left or down is ok and at full speed.

NAVras
10.04.2018, 10:07
Is there a convenient way to control the position of vjoy? The earth temple in WWHD need player to reflect light at some certain locations, if I press W it just go all the way up, and rests if I don't..

CemuUser8
10.04.2018, 13:34
Is there a convenient way to control the position of vjoy? The earth temple in WWHD need player to reflect light at some certain locations, if I press W it just go all the way up, and rests if I don't..

If you use the source version on GitHub that hasn't been released, I added the ability to customize the "Walk" speed. (https://i.imgur.com/TlRqCqG.png) This basically lets you limit the max simulated movement of the left analog stick with the movement keys. I also added HotKeys to adjust those values on the fly while controlling ( default to + - on the numpad ).

Also somewhere out there I have a version made that allows you use the mouse to control the left stick while a key is being held down... which was specifically for WW shield holding. I will look for where I saved it and maybe add a special option for WW that toggles automatically using that feature when the shield key is held, but no promises on that as I haven't had much time to spend working on this project lately.

NAVras
10.04.2018, 14:27
Right, forgot I could run those with AHK.. xD

p.s. Just realized I could swap left and right in cemu key mapping (tho not very convenient)

STJiMMyy
17.04.2018, 14:35
Hi, i have been facing issues with the mouse setting on this program. If i move my mouse fast it will barely move my camera, while if i do the same movement slowly, it works fine. I am not sure if it is a negative acceleration, or if the mouse just isnt being updated enough times to support a (kinda) fast movement. Do you have any idea what could be the cause of this? Thank you for the attention :)

Sniper101
03.02.2019, 18:58
I've been following Bsod Gaming's tutorial on how to setup mouse and keyboard for Botw, however I'm stuck where I need to run the mouse2joystick_Custom_CEMU.exe. I run the program as an administrator, but it opens for a second then closes and the .exe deletes itself. This might be an easy problem to fix, but I haven't found anything pertaining to it in the video comments or on this thread. Any help would be great!