• Login
  • Register
  • Dolphin Forums
  • Home
  • FAQ
  • Download
  • Wiki
  • Code


Dolphin, the GameCube and Wii emulator - Forums › Dolphin Emulator Discussion and Support › Support v
« Previous 1 ... 215 216 217 218 219 ... 1196 Next »

Has anyone ever worked out a way to smoothly implement Mouse and Keyboard controls?
View New Posts | View Today's Posts

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Thread Modes
Has anyone ever worked out a way to smoothly implement Mouse and Keyboard controls?
01-07-2019, 06:07 PM
#1
some1stoleit
Unregistered
 
Recently I've been trying to work out how to make my mouse act as the right stick for gamecube, which I want to use for a couple of gamecube only FPS games. I know how to bind the mouse, it comes down to making it Cursor/Axis and an X and Y value. Sometimes I get it to work but the mouse movement doesn't feel smooth at all, and other times my camera view gets stuck in the air constantly circling while looking up.

Surprisingly I haven't found much helpful information or plugins when it comes to using a mouse in Dolphin/Pcsx2, which I thought would be decently popular thing to do even for third person games.

So has anyone got a mouse setup working properly? If so I'd be very grateful to know what you've done to make it work.
Reply
01-07-2019, 07:06 PM (This post was last modified: 01-07-2019, 07:07 PM by MayImilae.)
#2
MayImilae Offline
Chronically Distracted
**********
Administrators
Posts: 4,614
Threads: 120
Joined: Mar 2011
It's not possible to turn GameCube FPS games into mouse+keyboard FPSes games, at least not within Dolphin. The games were designed for the controller exclusively, and just don't provide access to allow for proper mouse input. It is theoretically possible to edit the game to allow for mouse input, but that would be reeaally hard, and to my knowledge so far no one has done it before.
[Image: RPvlSEt.png]
AMD Threadripper Pro 5975WX PBO+200 | Asrock WRX80 Creator | NVIDIA GeForce RTX 4090 FE | 64GB DDR4-3600 Octo-Channel | Windows 11 22H2 | (details)
MacBook Pro 14in | M1 Max (32 GPU Cores) | 64GB LPDDR5 6400 | macOS 12
Find
Reply
01-07-2019, 08:57 PM
#3
some1stoleit
Unregistered
 
So it's not as simple as 'mouse right = joystick right' then? Would this be the same case for a PS2 game too?

When you say not within Dolphin is there some way to do it externally, like spoof a controller and make it's inputs mouse and keyboard?
Reply
01-08-2019, 10:40 AM
#4
MayImilae Offline
Chronically Distracted
**********
Administrators
Posts: 4,614
Threads: 120
Joined: Mar 2011
There are no external programs or anything to do this. The only way to add this would be to alter the game's original code on a per-game basis. Mice are fundamentally different compared to joysticks, and the games were designed exclusively for joysticks, so one would have to edit the original game's source code to add the features needed for mice support (specifically support for relative coordinate input and mouse sensitivity controls).
[Image: RPvlSEt.png]
AMD Threadripper Pro 5975WX PBO+200 | Asrock WRX80 Creator | NVIDIA GeForce RTX 4090 FE | 64GB DDR4-3600 Octo-Channel | Windows 11 22H2 | (details)
MacBook Pro 14in | M1 Max (32 GPU Cores) | 64GB LPDDR5 6400 | macOS 12
Find
Reply
01-08-2019, 12:28 PM
#5
SCOTT0852 Offline
Some guy on the internet
***
Posts: 96
Threads: 7
Joined: Jun 2018
Doesn't Steam have a way to make the right touchpad of the steam controller act like a joystick but still feel like a mouse? I'm pretty sure we could figure out how to do something similar but with a mouse instead of a right touchpad. Of course, games with camera smoothing won't play well, but I doubt any FPSes would have that.
Find
Reply
01-08-2019, 03:46 PM (This post was last modified: 01-08-2019, 04:01 PM by MayImilae.)
#6
MayImilae Offline
Chronically Distracted
**********
Administrators
Posts: 4,614
Threads: 120
Joined: Mar 2011
The Steam Controller's touchpads are well, touchpads, which use relative input just like a mouse. And it's for PC games which support mice input already. So um, that's pretty unrelated to this!
[Image: RPvlSEt.png]
AMD Threadripper Pro 5975WX PBO+200 | Asrock WRX80 Creator | NVIDIA GeForce RTX 4090 FE | 64GB DDR4-3600 Octo-Channel | Windows 11 22H2 | (details)
MacBook Pro 14in | M1 Max (32 GPU Cores) | 64GB LPDDR5 6400 | macOS 12
Find
Reply
01-09-2019, 07:18 AM
#7
mimimi Offline
Senior Member
****
Posts: 720
Threads: 1
Joined: May 2014
(01-07-2019, 08:57 PM)some1stoleit Wrote: So it's not as simple as 'mouse right = joystick right' then? Would this be the same case for a PS2 game too?

When you say not within Dolphin is there some way to do it externally, like spoof a controller and make it's inputs mouse and keyboard?

How do you imagine this is supposed to work? You could do something like "mouse right = joystick right", but i doubt that you would want that. You would have to constantly move the mouse to the right at a certain speed to emulate holding the stick to the right.

I think you might be able to emulate some shooter games good enough with a mouse. In games where the right stick only moves a cursor around, but does not turn the player around, when it hits the edges. For those games, you should be able to map a screen position to a stick position, as that stick position translates to a screen position in the emulated game. Until just now i assumed that is how Dolphin works, i don't try emulate controllers, i have lots of actual controllers that i can just use, sorry.
Find
Reply
01-09-2019, 03:25 PM (This post was last modified: 01-09-2019, 03:58 PM by SCOTT0852. Edit Reason: whoops )
#8
SCOTT0852 Offline
Some guy on the internet
***
Posts: 96
Threads: 7
Joined: Jun 2018
(01-08-2019, 03:46 PM)MayImilae Wrote: The Steam Controller's touchpads are well, touchpads, which use relative input just like a mouse. And it's for PC games which support mice input already. So um, that's pretty unrelated to this!

That's not quite what I meant. Because some games only support keyboard/mouse or controller and not both at the same time, there's an option to send joystick output but it still somehow feels like a mouse in any game without camera smoothing (but in games with it, like fortnite, it completely falls apart). It's been a while since I last used mine, but I recall the option being labelled "Mouse Joystick" in the controller config menu.

edit: found a screenshot that contains it [Image: Gmu9u4X]
edit 2: the image doesn't seem to be loading correctly so here's a direct link https://imgur.com/a/Gmu9u4X
Find
Reply
01-09-2019, 04:01 PM
#9
TKSilver Offline
Senior Member
****
Posts: 282
Threads: 0
Joined: May 2017
The biggest issues you will face when trying to map a mouse to a joystick is acceleration and directional.

Directional is not mapping forward mouse movement to up, but figuring out a way to determine a way for the player to hold up on the emulated joystick without having to constantly drag mouse forward. You would not want your camera constantly spinning right, but you also would not want to have to constantly pick up and drag the mose right to navigate a menu either.

Acceleration is simpler. Joystick acceleration curves are different then mouse acceleration curves and if you are really really lucky they are values that a memory editor (gecko codes) can change. Without that the movement will never feel quite right. This is the camera smoothing sensation that you were talking about.

So if you found a camera only right stick (C stick) game, that had acceleration values that could be edited by a gecko code... then for that one game if mouse support was added it would somewhat work. That is a best case scenario though. Also keep in mind that acceleration codes need to be adjusted for each individual game since every game uses their own values to get the right feel in gameplay.
Find
Reply
01-10-2019, 01:48 AM
#10
Legoboy0109 Offline
Game Tester
**
Posts: 18
Threads: 3
Joined: Apr 2018
I guess you could use mouse for IR on the wii, that works ok on MPT, but for gamecube your best bet is keyboard only, or a controller.
Intel DZ75ML-45K
Intel Core i5 3570K @4.0GHz
Sapphire AMD R9 Fury 4GB HBM Memory @ 500Mhz Core @ 1150MHz
2x4GB DDR3-1600 RAM
Intel 545s 256GB SSD
Find
Reply
« Next Oldest | Next Newest »


  • View a Printable Version
  • Subscribe to this thread
Forum Jump:


Users browsing this thread: 1 Guest(s)



Powered By MyBB | Theme by Fragma

Linear Mode
Threaded Mode