21
submitted 1 year ago by Plswrk@lemm.ee to c/linux@lemmy.ml

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 36 comments
sorted by: hot top controversial new old
[-] taladar@sh.itjust.works 19 points 1 year ago

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

[-] Kolanaki@yiffit.net 1 points 1 year ago* (last edited 1 year 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).

[-] PuppyOSAndCoffee@lemmy.ml 7 points 1 year ago

most programs have the option to allow you to use keyboard or gamepad. I would start there if you can.

One thing to consider — a cheapo gamepad might save you time in the long run.

[-] Plswrk@lemm.ee 3 points 1 year ago

It's for emulation, and unfortunately retroarch doesn't allow using mouse as a joystick. I should really just buy a cable for my xbox 360 controllers, but I was looking for a solution in the meantime.

[-] Kushan@lemmy.world 5 points 1 year ago

Just as an FYI, if the 360 controllers are wireless, then you cannot plug them in. The port is just for charging if you have a play and charge kit.

You can get knock-off 360 wireless adapters for the PC though and they generally work well.

In case it's relevant, you can plug in Xbox One (and series) controllers via the cable and newer Xbox One (and all Series) controllers can pair wirelessly via Bluetooth.

[-] Plswrk@lemm.ee 2 points 1 year ago
[-] fahfahfahfah@lemmy.billiam.net 1 points 1 year ago

They make a wireless adapter that lets you connect 360 controllers to windows PCs

[-] puttputt@beehaw.org 1 points 1 year ago

I should really just buy a cable for my xbox 360 controllers

If you're talking about the official wireless xbox 360 controller, I believe the cable is only used for power, not data.

[-] flashgnash@lemm.ee 1 points 1 year ago

I think you're gonna have a pretty rough time trying to use a mouse as a joystick

You can get wireless receivers for 360 controllers, joy cons, switch controllers, PS4 and ps5 controllers all work with PC over bluetooth if you have any of those lying around, PS3 ones should work wired with some effort

[-] yum13241@lemm.ee 1 points 1 year ago

AntiMicroX? Steam?

[-] CAPSLOCKFTW@lemmy.ml 1 points 1 year ago
[-] Plswrk@lemm.ee 1 points 1 year ago

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?

[-] CAPSLOCKFTW@lemmy.ml 2 points 1 year ago

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

[-] Plswrk@lemm.ee 1 points 1 year ago

Thanks mate.

[-] merthyr1831@lemmy.world 1 points 1 year 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

[-] AlphaOmega@lemmy.world 0 points 1 year ago

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

[-] Plswrk@lemm.ee 1 points 1 year ago
[-] AlphaOmega@lemmy.world 0 points 1 year ago
[-] Plswrk@lemm.ee 1 points 1 year ago

Tried it. Throws an error unfortunately.

[-] mindbleach@lemmy.world -3 points 1 year ago

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

[-] Plswrk@lemm.ee -5 points 1 year ago

How about you answer it smartass.

[-] mindbleach@lemmy.world 2 points 1 year ago

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

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

Linux

48152 readers
734 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 5 years ago
MODERATORS