How to stop gamepad from controlling cursor? (Solved)

Moderators: 666philb, Forum moderators

Post Reply
User avatar
NutButterPea
Posts: 5
Joined: Sat Aug 12, 2023 6:41 am
Been thanked: 1 time

How to stop gamepad from controlling cursor? (Solved)

Post by NutButterPea »

Hello everyone.

TLDR: How do I turn off the cursor support for gamepads in FossaPup64 9.5?

I am using FossaPup64 9.5 and I have attached a generic USB gamepad I got for dirt cheap ($5) which thus far has worked flawlessly on emulators, and games using x360ce on Windows. The gamepad seems to work perfectly fine when I got wine installed from quickpet and fired up an emulator, with all my button mappings translating perfectly from Windows which is great however the gamepad seems to also affect my desktop cursor, now this is actually a great feature since I had to use xpadder in the past for that so I definitely would like to use it when I am not running a game or emulator, but how do I turn it off so that I can use the gamepad without affecting the desktop cursor?

Mr. Green -> :mrgreen:

User avatar
greengeek
Posts: 1378
Joined: Thu Jul 16, 2020 11:06 pm
Has thanked: 525 times
Been thanked: 191 times

Re: Gamepad controlling cursor

Post by greengeek »

I don't know the answer - but just a quick thought that maybe it would be possible to temporarily change the desktop cursor to a single pixel (instead of whatever arrow is currently in use?

That way you may not see the cursor until you switched off the modded cursor and went back to normal.

I know that Barry Kauler has recently offered a pet that can be used to change the cursor theme so maybe this is an option?

User avatar
NutButterPea
Posts: 5
Joined: Sat Aug 12, 2023 6:41 am
Been thanked: 1 time

Re: Gamepad controlling cursor

Post by NutButterPea »

Thanks for the response. :thumbup2: :thumbup2: :

I am able to use Simple Xcursor Creator and Simple Xcursor Selector to switch to a 0px cursor, part of the process includes restarting the graphical server so you have to launch the relevant applications through the terminal until you're ready to switch it back thus regaining the mouse cursor. It might be worth noting that even though you have a 0px cursor, it is still a fully functional cursor that can interact with desktop elements, it just is rendering 0 pixels. The 0px cursor may still interact with the taskbar if the application entering fullscreen does not automatically hide it for example, or even simulate mouse clicks in the Winows games as Button 1 on the gamepad triggers LMB.

In my particular case, this does indeed allow me to use the gamepad on emulators in fullscreen without the cursor moving all over the screen.
:mrgreen: :mrgreen:

Mr. Green -> :mrgreen:

User avatar
Flash
Moderator
Posts: 972
Joined: Tue Dec 03, 2019 3:13 pm
Location: Arizona, U.S.
Has thanked: 50 times
Been thanked: 124 times

Re: How to stop gamepad from controlling cursor?

Post by Flash »

So is your problem solved?

Chaos coordinator :?
User avatar
Grey
Posts: 2018
Joined: Wed Jul 22, 2020 12:33 am
Location: Russia
Has thanked: 76 times
Been thanked: 375 times

Re: How to stop gamepad from controlling cursor?

Post by Grey »

NutButterPea wrote: Sat Aug 12, 2023 7:48 am

so I definitely would like to use it when I am not running a game or emulator, but how do I turn it off so that I can use the gamepad without affecting the desktop cursor?

Hi. Go to /usr/share/X11/xorg.conf.d/
In the 50-joystick.conf file (if it doesn't exist, then create it), add the lines (if there are already lines there, then inside the section, not at the end of the file).
Comments behind the # sign are optional:

Code: Select all

Option "StartKeysEnabled" "off" # Disable mouse
Option "StartMouseEnabled" "off"  # support of joypad

"off" or "on" turn off or turn on the operation of the joy as a mouse ;)
Restart graph server (Menu>>Exit>>Restart graphical server)

Flash wrote: Sat Aug 12, 2023 4:33 pm

So is your problem solved?

I think it's solved NOW ;)

Fossapup OS, Ryzen 5 3600 CPU, 64 GB RAM, GeForce GTX 1050 Ti 4 GB, Sound Blaster Audigy Rx with amplifier + Yamaha speakers for loud sound, USB Sound Blaster X-Fi Surround 5.1 Pro V3 + headphones for quiet sound.

User avatar
NutButterPea
Posts: 5
Joined: Sat Aug 12, 2023 6:41 am
Been thanked: 1 time

Re: How to stop gamepad from controlling cursor?

Post by NutButterPea »

Grey wrote: Sat Aug 12, 2023 6:25 pm

I think it's solved NOW ;)

Yes, it's solved perfectly! :thumbup:
Thanks!! This is actually exactly what I was looking for, this solution works flawlessly and allows you to toggle the setting easily.
Much appreciated!

Mr. Green -> :mrgreen:

Post Reply

Return to “Fossapup64”