PORTING COMMUNITY

Porting Kit => New Features => Topic started by: vitormm on June 01, 2018, 12:43:14 AM

Title: Joystick Controller support (on tests)
Post by: vitormm on June 01, 2018, 12:43:14 AM
Hello everyone!

We are working in the support of joystick controllers in the Porting Kit. The idea is that this feature will be available for Premium Users, which is a concept that still does not exist in PK, but should be adopted during this year.

Basically, whoever donates an amount of 5 dollars or more to PK (we gonna create a separated PayPal account for that), will have access to some specific ports and to that feature. In that way we can pay for our hosting service and still keep PK free, among with all the rest of its features.

However, while we do tested that new feature, we need feedbacks of it from people playing other games. In order to do that, we make the following proposal:

If you are willing to report to us a feedback of how is the controller mapping working, we can enable the joystick mapping for you so you use it at your will! There is no need to report to us multiple times; a single report of how was using the joystick feature in a specific game is enough, as long as it's informative.

The Porting Kit has the option to login in your forum account, by pressing Porting Kit -> Forum User Login. Once you ask for it, we gonna enable it for your user, so you will be able to use it for two months. Once you have reported to us how was the performance of the new feature, the time limit will be removed, and the joystick mapping feature will be available for you as long as we have it :D

Now you may be wondering: what is controller mapping?
Basically, some games do not support controllers. Other games would support, but for some reason their detection doesn't work in Wine. So what to do? That feature maps your joystick keys into keyboard keys and cursor movements, in a totally configurable way. In that way, you should be able to play ANY game with any supported joystick, as long as it's properly configured. That also means that this is proper for single player gaming, but not multiplayer (most of the time).

Most of the controllers are supported, including PS4 controllers (v2). The only controllers not supported (for now) are:
- Xbox 360 controller
- Xbox One controller
- Playstation 3 controller
- Playstation 4 controller (v1)
- Steam controller

Basically, all HID compatible controllers + PS4 v2 are supported. Ow, and the PS4 v2 controller is compatible in both wired and bluetooth modes.

If you want to help us adding support to the Playstation 3 controller or the Playstation 4 controller (v1), you are also welcome to join, since with your help we can probably get them supported :)

Xbox 360 and Xbox One controllers, in the other hand, require a totally different method to be detect and mapped, and so we, unfortunately, can't make them work yet. Trust me, I tried; I have a Xbox 360 and a PS4 controller, but I could only make the PS4 controller work for now  :(

The Steam controller can be detect (borrowed one once to test), but it isn't identified properly. The IOKit API thinks it has dozens of keys, and none of them are the real keys of the controller :P

Anyway, back to the proposal: that's it. If you are interested, just answer that post so we can add your forum username to the testing list :)
Title: Re: Joystick Controller support (on tests)
Post by: GiusseM on June 06, 2018, 06:08:52 PM
I'll gladly try it out and send you feedback, though I'm only going to be able to test it out in Fallout 3 and Cuphead! Thanks for sending me the link!
Title: Re: Joystick Controller support (on tests)
Post by: vitormm on June 07, 2018, 12:00:11 PM
I'll gladly try it out and send you feedback, though I'm only going to be able to test it out in Fallout 3 and Cuphead! Thanks for sending me the link!

You're welcome  ;D

Just added you to the testing list. Check if the controller mapping feature is already appearing, as explained in the post.
Title: Re: Joystick Controller support (on tests)
Post by: Brainzyy on June 07, 2018, 09:19:30 PM
Hi Vitor, I can test as well if needed. I only have an xbox360 controller though, so since that doesn't work, I'm not sure I would be of much help :p
Title: Re: Joystick Controller support (on tests)
Post by: vitormm on June 08, 2018, 02:12:02 AM
Hi Vitor, I can test as well if needed. I only have an xbox360 controller though, so since that doesn't work, I'm not sure I would be of much help :p

For now the JCS don't work with original XBox 360 controllers (and even some of the generics made to look like it) :P

The reason is simple: the system is based in IOKit, which can detect HID devices (HID means Human Interface Device). However, Xbox 360 and Xbox One controllers aren't identified has a proper HID (I don't know why). So basically, while any controller prior to the Xbox 360 / Playstation 3 generation can be identified with a "generic driver", the Xbox-ones need drivers made specifically for them, and the Playstation-ones need minor adjusts.

I tried to identify an Xbox 360 controller once. My only achievement was to detect that it was connected, but I couldn't retrieve the key inputs, so it was useless :P

I will surely take a look at that again in the future, but for now I don't have enough free time for testing that.

HOWEVER, if I recall correctly (I may be wrong), I think that the JCS does work with Xbox 360 controllers if you use 360Controller (https://github.com/360Controller/360Controller) at the same time. I haven't checked their source, but I believe that this happens because they create a virtual HID device that serves has an interface for the Xbox 360 controller. It's just a theory though.

Added your name to the list in case you want to check that.
Title: Re: Joystick Controller support (on tests)
Post by: DiracMan42 on June 10, 2018, 03:04:56 PM
I'm happy to join the testing list - I'd like to get my Logitech joystick working with Rogue Squadron 3D. It doesn't seem to function out-of-the-box. Thanks!
Title: Re: Joystick Controller support (on tests)
Post by: vitormm on June 10, 2018, 03:41:34 PM
I'm happy to join the testing list - I'd like to get my Logitech joystick working with Rogue Squadron 3D. It doesn't seem to function out-of-the-box. Thanks!

Added your username to the testing list ;)

Remembering everyone that:

Quote
Once you ask for it, we gonna enable it for your user, so you will be able to use it for two months. Once you have reported to us how was the performance of the new feature, the time limit will be removed, and the joystick mapping feature will be available for you as long as we have it
Title: Re: Joystick Controller support (on tests)
Post by: DiracMan42 on June 10, 2018, 06:56:32 PM
Okay, first attempt:

I was able to successfully identify and rename the buttons on my Logitech joystick without a problem (see first picture).

And then I was able to correctly assign the X and Y axes to the arrow keys, but it wouldn't let me map any of the buttons on the joystick - they just stay stuck at "None" when I click on them (see second picture).

I tested this on Rogue Squadron 3D - I can successfully fly the plane using the joystick, but I can't fire my weapons or anything, because so far I can't assign the trigger button on the joystick. I'll keep messing with it - this is just my first attempt at getting it working. Thanks again.
Title: Re: Joystick Controller support (on tests)
Post by: colinpopshed on June 12, 2018, 07:32:48 PM
I'd be happy to try for Fallout NV :)
Title: Re: Joystick Controller support (on tests)
Post by: vitormm on June 15, 2018, 01:45:27 AM
Okay, first attempt:

I was able to successfully identify and rename the buttons on my Logitech joystick without a problem (see first picture).

And then I was able to correctly assign the X and Y axes to the arrow keys, but it wouldn't let me map any of the buttons on the joystick - they just stay stuck at "None" when I click on them (see second picture).

I tested this on Rogue Squadron 3D - I can successfully fly the plane using the joystick, but I can't fire my weapons or anything, because so far I can't assign the trigger button on the joystick. I'll keep messing with it - this is just my first attempt at getting it working. Thanks again.

Hey DiracMan42! Sorry for taking too long to answer. I've seen a picture of the controller on Google, but which key is the trigger key which you are referring to, just to confirm? Is it the key in the top of the joystick?

I'd be happy to try for Fallout NV :)

Hey colinpopshed! Sorry for taking too long to answer. I will add your user to the list.
Title: Re: Joystick Controller support (on tests)
Post by: colinpopshed on June 15, 2018, 08:39:48 AM
Thankyou!

I was able to configure a Nintendo Switch controller (also HID compatible), but when I try to launch Fallout NV, I get the game menu as normal, but when I click 'PLAY' I just get a tiny black window that doesn't do anything else (see screenshot). Normally it goes full screen straight away and the game starts.

If I disconnect the controller, force quit the game and try again, it works completely fine. Then reconnect the controller, and I get this again. Tried numerous times. It's as if the game just doesn't like the controller being connected :)

I'm not doing anything else differently.

Hope this is of use, I can provide more info if needed.



Title: Re: Joystick Controller support (on tests)
Post by: vitormm on June 16, 2018, 01:28:56 AM
Thankyou!

I was able to configure a Nintendo Switch controller (also HID compatible),

Nice, I didn't know it was HID compatible :D

but when I try to launch Fallout NV, I get the game menu as normal, but when I click 'PLAY' I just get a tiny black window that doesn't do anything else (see screenshot). Normally it goes full screen straight away and the game starts.

If I disconnect the controller, force quit the game and try again, it works completely fine. Then reconnect the controller, and I get this again. Tried numerous times. It's as if the game just doesn't like the controller being connected :)

I'm not doing anything else differently.

Hope this is of use, I can provide more info if needed.

Uhn, I'm not sure if this is being caused by Wine or by the game itself. Could you please try to perform a Debug in the port while the controller is connected?

Also, did you tried to connect the controller after loading your save in the game? This may give me a clue about which one is causing that (FNV or Wine).
Title: Re: Joystick Controller support (on tests)
Post by: awalk23 on June 22, 2018, 08:03:42 PM
I'd love to try with my DS4!
Title: Re: Joystick Controller support (on tests)
Post by: vitormm on June 23, 2018, 03:01:15 AM
I'd love to try with my DS4!

Just added you to the list ;) It should be working for you now, as long as you login.
Title: Re: Joystick Controller support (on tests)
Post by: apconiglio on July 08, 2018, 08:06:09 AM
I'd like to be added. Currently attempting to use a PS4 V2 controller to play Fallout New Vegas.

In terms of the issue when trying to play this game with the wireless controller brought up by the other user (small black box popping up and the game never starting), I have been able to connect the controller after on the menu screen and the game plays normally; although when I go to settings to map the controller, no option appears (only showing mouse and keyboard). Whereas if I plug the controller into my computer, the small black box issue doesn't occur and I get a joystick option in the settings (and although it does allow me to map buttons using the controller, it doesn't allow me to use them in game).
Title: Re: Joystick Controller support (on tests)
Post by: vitormm on July 08, 2018, 09:15:06 PM
I'd like to be added. Currently attempting to use a PS4 V2 controller to play Fallout New Vegas.

Just added you to the list ;)

In terms of the issue when trying to play this game with the wireless controller brought up by the other user (small black box popping up and the game never starting), I have been able to connect the controller after on the menu screen and the game plays normally; although when I go to settings to map the controller, no option appears (only showing mouse and keyboard). Whereas if I plug the controller into my computer, the small black box issue doesn't occur and I get a joystick option in the settings (and although it does allow me to map buttons using the controller, it doesn't allow me to use them in game).

Many games, including FNV, have that kind of issue. Joystick support in already complicated by itself with some games in Windows, and when it comes to run them on Wine things get even more complicated. That's why we thought about the PK mapping system ;)

Once your joystick is mapped with PK, you should be able to play the game with it, like if you were simply using your mouse and keyboard.

I forgot to mention that before, but in case anyone also has suggestions for that feature, fell free to do it :) All suggestions are welcome. The only thing that we can't do (for now, at least) are:
- Local multiplayer support for games that require different controllers to do that, since the mapping of joysticks directly means that all the connected joysticks will be identified by the game has the same device: your keyboard;
- XBox 360 and Xbox One controllers support, for the reasons explained in the first post of that topic.
Title: Re: Joystick Controller support (on tests)
Post by: FrostMagma on July 09, 2018, 05:08:23 AM
Id love to be added! I have a PS4 V1 and am trying to play Fallout New Vegas if that helps.

Thanks,
Title: Re: Joystick Controller support (on tests)
Post by: vitormm on July 09, 2018, 12:03:11 PM
Id love to be added! I have a PS4 V1 and am trying to play Fallout New Vegas if that helps.

Thanks,

You need a forum account in order to have access to this feature. That's how I can add you to the list ;)
Title: Re: Joystick Controller support (on tests)
Post by: forceitin on September 17, 2018, 05:07:57 PM
If you could put me on the testing list, that would be pretty sick. Would be testing it with burnout paradise.
Title: Re: Joystick Controller support (on tests)
Post by: vitormm on September 20, 2018, 11:04:03 PM
If you could put me on the testing list, that would be pretty sick. Would be testing it with burnout paradise.

Added ;)
Title: Re: Joystick Controller support (on tests)
Post by: videodrome on December 04, 2018, 09:30:51 PM
If you could put me on the testing list, that would be pretty sick. Would be testing it with burnout paradise.

Added ;)

I know it's been a few months, but I was wondering if this is still ongoing. If so, I'd love to test, as I am trying to play New Vegas on my Mac!
Title: Re: Joystick Controller support (on tests)
Post by: vitormm on December 09, 2018, 06:02:47 PM
If you could put me on the testing list, that would be pretty sick. Would be testing it with burnout paradise.

Added ;)

I know it's been a few months, but I was wondering if this is still ongoing. If so, I'd love to test, as I am trying to play New Vegas on my Mac!

Just added you ;)
Title: Re: Joystick Controller support (on tests)
Post by: i_am_polaris on December 31, 2018, 01:42:08 AM
I'd love to be added to the list of testers. I'd start with a steam controller running Fallout New Vegas on my Mac portingKit.
Thanks
Title: Re: Joystick Controller support (on tests)
Post by: vitormm on January 06, 2019, 03:05:22 AM
I'd love to be added to the list of testers. I'd start with a steam controller running Fallout New Vegas on my Mac portingKit.
Thanks

Added you to the list ;)

Sorry for taking so long to answer.
Title: Re: Joystick Controller support (on tests)
Post by: emilered on January 20, 2019, 07:49:58 PM
Hello, I was wondering if I can be added, I have Oblivion from GOG, and Id like to test it with my Xbox 360 Controller. Thanks
Title: Re: Joystick Controller support (on tests)
Post by: 12granb on February 12, 2019, 01:37:06 PM
I'd like to be added. Testing Fallout NV, steam version on Porting Kit
Title: Re: Joystick Controller support (on tests)
Post by: mustang6139 on March 13, 2019, 04:35:06 PM
I would like to test this new feature with splinter cell. Im very glad if you are add me to the tester list.
Thank you in advanced.
Title: Re: Joystick Controller support (on tests)
Post by: ludwig23 on March 30, 2019, 02:36:42 AM
I would like to test this feature with my PS4 controller on Fallout 3. Thank you :)
Title: Re: Joystick Controller support (on tests)
Post by: vitormm on April 19, 2019, 02:16:43 PM
Hello, I was wondering if I can be added, I have Oblivion from GOG, and Id like to test it with my Xbox 360 Controller. Thanks

I'd like to be added. Testing Fallout NV, steam version on Porting Kit

I would like to test this new feature with splinter cell. Im very glad if you are add me to the tester list.
Thank you in advanced.

I would like to test this feature with my PS4 controller on Fallout 3. Thank you :)

Just added the three of you :)
Title: Re: Joystick Controller support (on tests)
Post by: SideshowZig on April 23, 2019, 12:48:21 AM
I would like to be added to the list. I'm will be using a ps4 controller through bluetooth.
Title: Re: Joystick Controller support (on tests)
Post by: vitormm on May 04, 2019, 01:53:53 PM
I would like to be added to the list. I'm will be using a ps4 controller through bluetooth.

Just added you ;)
Title: Re: Joystick Controller support (on tests)
Post by: x33rpm on May 08, 2019, 03:37:00 AM
Am I still in time to test this out?  It would be either a DS3 or DS4 with New Vegas.  Thanks!
Title: Re: Joystick Controller support (on tests)
Post by: hbusta86 on May 14, 2019, 11:50:56 PM
Me too!!!

"I would like to be added to the list. I'm will be using a ps4 controller through bluetooth."
Title: Re: Joystick Controller support (on tests)
Post by: brendenbmc on May 30, 2019, 01:03:34 AM
I was wondering if I could test this with Fallout New Vegas, the game runs smoothly but I would really like to play with my PS4 controller. Thank you. (Amazing port btw)
Title: Re: Joystick Controller support (on tests)
Post by: Hasa360 on June 06, 2019, 04:34:08 PM
I'd love to test this! I will happily send feedback too!
Regards
Title: Re: Joystick Controller support (on tests)
Post by: tk421mesa on June 07, 2019, 02:06:19 AM
Also willing! Have a SteelSeries Nimbus controller to test with.
Title: Re: Joystick Controller support (on tests)
Post by: adamp64 on June 20, 2019, 04:34:21 PM
Can I also join the test please?