How in the fudge to use mouse as joystick?

Plswrk@lemm.ee to Linux@lemmy.ml – 20 points –

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.

35

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

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.

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.

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.

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

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.

Iirc AntiMicroX can do this.

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?

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

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

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

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

How about you answer it smartass.

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

Oh fuck off you annoying cunt, I'm sure your mother would like to hear from you. I certainly do not.

Child.

Snide cunt.

You meet polite suggestions with the worst insults you know, after the bare minimum of searching about a niche issue.

You will not be missed here.

"Polite suggestions"

Yes. You immature font of toxicity. I linked to a page specifically about how a short script, from scratch, can convince Linux you have a joystick attached. Is it a trivial turn-key solution? No. Does that justify the screeching slurs you've spat? Not at all, you fucking gremlin.

edit: Saw your contrary follow-up, doesn't change anything. Be better in the first place. And I don't mean your grammar.

First you unhelpfully and condescendly harped on about semantics, then called me prickly when that annoyed me, and now you're surprised I called you out on your awful attitude. This is all on you, buddy. Start shit get bit asshole.

I'm not surprised. You did your worst immediately and learned approximately nothing. You escalated to a tantrum over getting what you asked for, alongside - again - gentle offhand criticism.

And you're still doing edgelord bullshit like you really flexed on someone by calling them the n-word.

Nevermind the irony of your complete inability to wonder - were you called "prickly" on account of your own actions? Does your back-of-a-Big-Dogs-t-shirt philosophy apply to you?

... do you maybe think "prickly" means someone called you a prick?

Lol, who did I call the n word? This is not a fucking cocktail party where we stand around and insult eachother underhandedly through forced smiles and fake laughter. This is the internet mate. I've got nothing to lose over calling you a cunt for acting like a cunt. If you can't handle it, don't be a cunt. That is all. You know damn well you started this conversation off in it's current tone, and damn right I have no problem throwing your god awful attitude back at you 10x over.

2 more...
2 more...
2 more...
2 more...
4 more...

I went overboard, but hell does unhelpful semantic bs piss me off. You came off really condescending and smarmy, even if you didn't mean to. The half an hour of searching isn't what ticked me off mate.

4 more...
4 more...
4 more...
4 more...
4 more...
4 more...
4 more...