this post was submitted on 20 Aug 2023
20 points (81.2% liked)

Linux

56005 readers
941 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 6 years ago
MODERATORS
 

Thought this would be dead simple to find on google, but NOPE! Is it even possible? I've been trying different searches for over half an hour now.

all 37 comments
sorted by: hot top controversial new old
[–] [email protected] 19 points 2 years ago (1 children)

That sounds tricky since a mouse doesn't return its axes back to the center position on its own.

[–] [email protected] 1 points 2 years ago* (last edited 2 years ago)

Even if you emulated it, like I've experienced some games doing, why would you want it? It feels weird as hell having the cursor or aim snap back once you stop moving the mouse entirely (rocket League does this if setting camera movement to mouse).

[–] [email protected] 1 points 2 years ago (1 children)
[–] [email protected] 1 points 2 years ago (1 children)

I've tried to take a look, but unfortunately it seems you need to connect a controller for it to do anything. I just have a keyboard and mouse. I've also done some searching on how to accomplish this, but came up empty. Do you have any insight on how to accomplish it?

[–] [email protected] 2 points 2 years ago (1 children)

I found two other things that might do the trick:

https://github.com/jgeumlek/MoltenGamepad

this looks like highly sophisticated gamepad emulation. IDK if you can map mouse and keys to your virtual gamepads easily, but the readme suggest that you definitly can. Looks like some work though.

https://github.com/iosonofabio/virtual_gamepad

this one is a fairly simple python script. I don't know if you're into programming, if it works you only need to change it so it registers mouse input and map that to the virtual controllers stick

[–] [email protected] 1 points 2 years ago

Thanks mate.

[–] [email protected] 1 points 2 years ago

Steam input is your best bet. It has a desktop configuration thats loaded when not playing games and usually autoconfigures the joystick to act as a mouse

[–] [email protected] 1 points 2 years ago (1 children)
[–] [email protected] 1 points 2 years ago

Explanation? Links?

[–] [email protected] 0 points 2 years ago (1 children)

Rewasd might work. Depends on what type of controller you are trying to emulate. I don't know if they have an option for "joystick" emulation, but it can spoof your keyboard to act as a PS or Xbox controller

[–] [email protected] 1 points 2 years ago (1 children)
[–] [email protected] 0 points 2 years ago (1 children)
[–] [email protected] 1 points 2 years ago

Tried it. Throws an error unfortunately.

[–] [email protected] -3 points 2 years ago (1 children)

"How to" is an explanation. "How do I" is a question.

[–] [email protected] -5 points 2 years ago (1 children)

How about you answer it smartass.

[–] [email protected] 2 points 2 years ago (1 children)

Probably write your own driver, if you're this prickly after a whole half-hour of searching.