×

INDI Library v2.0.7 is Released (01 Apr 2024)

Bi-monthly release with minor bug fixes and improvements

Joystick

  • Posts: 216
  • Thank you received: 120

Replied by Rick Bassham on topic Joystick

Hey Rob. I've only tested it with a Logitech F310 gamepad. Do you see "found gamecontroller at index" in the log after "joysticks count"?
3 years 1 month ago #67818

Please Log in or Create an account to join the conversation.

  • Posts: 3
  • Thank you received: 0

Replied by Steven Hutchings on topic Joystick

Having followed the instructions here, Rick, I was able to get the GamePad working for a short time on macOS Monterey with KStars 3.5.7 beta. But, updating to the stable version of 3.5.7 appears to have stopped this from working, despite me rebuilding the GamePad driver.

The GamePad driver shows in the Indi equipment list, but is listed as a Server/remote option, rather than a service I can run locally. Do you have an idea of what may be causing this?
2 years 2 months ago #80232

Please Log in or Create an account to join the conversation.

  • Posts: 2877
  • Thank you received: 812

Replied by Rob Lancaster on topic Joystick

Hey there,

Sorry I didn't ever see the response that Rick sent.  To answer the question, I see this line:
Driver ./indi_gamepad: joysticks count: 1
And then after that, I see information about the switches (if -vvv is turned on) but I don't see anything printing about finding gamecontroller at an index.

Steven I am not sure why it would have worked in one version but not another, but I am running from the command line using "remote".  I didn't install it into the kstars app bundle.

Thanks,

Rob
2 years 2 months ago #80288

Please Log in or Create an account to join the conversation.

  • Posts: 2877
  • Thank you received: 812

Replied by Rob Lancaster on topic Joystick

Ok I decided to run the program in QT creator and try to debug it a little to see why it isn't working for me.

I do personally have two joysticks, and I tested both of them.  For both of them, this line:

IDLog("joysticks count: %d\n", SDL_NumJoysticks());

gave the value of 1

But then this line:

if (SDL_IsGameController(i))

returned false.   Does this mean that my joystick and gamepad are both just not compatible as Game Controllers, or do I need to install some drivers to get them to be supported?

Thanks,

Rob


 
2 years 2 months ago #80289

Please Log in or Create an account to join the conversation.

  • Posts: 216
  • Thank you received: 120

Replied by Rick Bassham on topic Joystick

Hey Steven, I'll see if I can get this working again.
2 years 2 months ago #80293

Please Log in or Create an account to join the conversation.

  • Posts: 216
  • Thank you received: 120

Replied by Rick Bassham on topic Joystick

Rob, what game controller are you testing with? The SDL lib may not recognize it as a gamepad, but may still recognize it as a joystick. I can look at adding support for non-gamepad joysticks as well.
2 years 2 months ago #80294

Please Log in or Create an account to join the conversation.

  • Posts: 2877
  • Thank you received: 812

Replied by Rob Lancaster on topic Joystick

I have two controllers.  I have a Logitech Wingman Force 3D Joystick and I have a Logitech Rumblepad 2.   

If we can get it working, I see no reason we couldn't put it in the 3rd Party Drivers.  So far though, I haven't been able to make it work on My Mac.
2 years 2 months ago #80295

Please Log in or Create an account to join the conversation.

  • Posts: 2877
  • Thank you received: 812

Replied by Rob Lancaster on topic Joystick

I just tested the RumblePad 2, which is the one I was expecting to work with this driver, in OpenEMU and it works fine.
2 years 2 months ago #80296

Please Log in or Create an account to join the conversation.

  • Posts: 2877
  • Thank you received: 812

Replied by Rob Lancaster on topic Joystick

Yes, if it can recognize it as a Joystick, but not as a GamePad, then I think there would be support for a whole lot more devices.  Both of my devices were recognized as existing, just not as gamepads.
2 years 2 months ago #80298

Please Log in or Create an account to join the conversation.

  • Posts: 3
  • Thank you received: 0

Replied by Steven Hutchings on topic Joystick

Thank you I have sorted the problem another way ,
I created a boot partition on the Mac mini and installed Ubuntu then installed K-Stars and everything worked straight away the Linux version seems much more stable! 
2 years 2 months ago #80309

Please Log in or Create an account to join the conversation.

  • Posts: 3
  • Thank you received: 1

Replied by nivlac on topic Joystick

I know it's been a long time since anyone has posted in this thread...

I'm wondering however if any progress has been made toward getting the joystick (xbox controller in my case) to work in Kstars.

I have noticed that the Mac OS now has drivers built into the OS for Xbox controllers. I can join my wireless controller to the Mac and the buttons are all detected.

I read earlier in this thread that one could build the driver. I am having issues getting cmake to work though. When I run cmake it fails with errors.
I followed the process to install brew but

When I try to load the joystick driver then EKOS just doesn't connect at all.

I'm wondering if the driver in the Mac OS conflicts with the indi driver. I'm also wondering if I fixed it so it will never work now after trying to follow this 3 year old process. lol

If we've basically burried this subject let me know and I'll try to find another solution. I would like to be able to steer the telescope without having to hold the computer so that I can look through the spotting scope without having to look back and forth between the computer and the spotting scope... would just be so convenient. :)

Thank you for all your work! I'm sorry I'm not a developer and can help. I never got past hello world though.
7 months 3 weeks ago #95309

Please Log in or Create an account to join the conversation.

  • Posts: 23
  • Thank you received: 2

Replied by Jordi Sesé on topic Joystick

Hi All,

I have been able to connect a simple aliexpress gamepad to Ekos in a Mac environment, but I have an issue (I guess) with the read values. I do not know whether it is EQMOD driver related, or if it can be fixed anyway.

First of all, how I enabled it, i case someone wants to try this, too:
- I have used the free Indigo Server to have a remote indi server (localhost:7664 in my case) just for the gamepad, since it includes an HID Joystick driver that detects it. The important thing to do is to write down the devicename (in my case USB gamepad #14200000)
- In the Ekos profile editor, I add the connection ("devicename"@localhost:7664) to the remote server at the end (Remote field) after all other devices.
This brings me a new tab with the remote device, with all its options.
- In the EQMOD options tab, enable Joystick, enter devicename in the Snoop joystick field
- In the EQMOD Joystick tab, enter the AXIS options corresponding to the gamepad axis I want to use for N/S and W/E
- After that, Save EQMOD driver options

With this done, when I press the axis button the mount moves to the right direction, but after relasing the axis button, it keeps moving in NW direction, regardless the movement I pressed. In the original (remote) driver tab, the buttons get pressed/released correctly, it is just happening in the EQMOD part.
I guess it may be because the idle value of the axis is not zero, but -258. After noticing that, I have tested an XBOX controler from my son (through bluetooth), and it does the very same; the idle values are also not zero, and even bigger.

Any ideas about this?

I will try to test with a remote linux box with the original joystick driver and will report the results.

If you have any input on what to try, it would be great. Thanks for your help.

Jordi.
4 months 2 weeks ago #97521

Please Log in or Create an account to join the conversation.

Time to create page: 0.853 seconds