Author Topic: Joystick Controller support (on tests)  (Read 2619 times)

Offline vitormm

  • Developer
  • Administrator
  • Legendary Porter
  • *****
  • Posts: 957
Joystick Controller support (on tests)
« 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 :)
« Last Edit: June 01, 2018, 12:46:07 AM by vitormm »

Offline GiusseM

  • Newbie
  • **
  • Posts: 1
Re: Joystick Controller support (on tests)
« Reply #1 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!

Offline vitormm

  • Developer
  • Administrator
  • Legendary Porter
  • *****
  • Posts: 957
Re: Joystick Controller support (on tests)
« Reply #2 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.
« Last Edit: June 07, 2018, 12:02:05 PM by vitormm »

Offline Brainzyy

  • Global Moderator
  • Porter
  • *****
  • Posts: 94
Re: Joystick Controller support (on tests)
« Reply #3 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

Offline vitormm

  • Developer
  • Administrator
  • Legendary Porter
  • *****
  • Posts: 957
Re: Joystick Controller support (on tests)
« Reply #4 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 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.
« Last Edit: June 08, 2018, 03:12:12 AM by vitormm »

Offline DiracMan42

  • Newbie
  • **
  • Posts: 2
Re: Joystick Controller support (on tests)
« Reply #5 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!

Offline vitormm

  • Developer
  • Administrator
  • Legendary Porter
  • *****
  • Posts: 957
Re: Joystick Controller support (on tests)
« Reply #6 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

Offline DiracMan42

  • Newbie
  • **
  • Posts: 2
Re: Joystick Controller support (on tests)
« Reply #7 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.

Offline colinpopshed

  • Newbie
  • **
  • Posts: 2
Re: Joystick Controller support (on tests)
« Reply #8 on: June 12, 2018, 07:32:48 PM »
I'd be happy to try for Fallout NV :)

Offline vitormm

  • Developer
  • Administrator
  • Legendary Porter
  • *****
  • Posts: 957
Re: Joystick Controller support (on tests)
« Reply #9 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.

Offline colinpopshed

  • Newbie
  • **
  • Posts: 2
Re: Joystick Controller support (on tests)
« Reply #10 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.



« Last Edit: June 15, 2018, 08:41:55 AM by colinpopshed »

Offline vitormm

  • Developer
  • Administrator
  • Legendary Porter
  • *****
  • Posts: 957
Re: Joystick Controller support (on tests)
« Reply #11 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).

Offline awalk23

  • Newbie
  • **
  • Posts: 1
Re: Joystick Controller support (on tests)
« Reply #12 on: June 22, 2018, 08:03:42 PM »
I'd love to try with my DS4!

Offline vitormm

  • Developer
  • Administrator
  • Legendary Porter
  • *****
  • Posts: 957
Re: Joystick Controller support (on tests)
« Reply #13 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.

Offline apconiglio

  • Newbie
  • **
  • Posts: 1
Re: Joystick Controller support (on tests)
« Reply #14 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).