![]() |
|
Clamp mouse cursor to window? - Printable Version +- Dolphin, the GameCube and Wii emulator - Forums (https://forums.dolphin-emu.org) +-- Forum: Dolphin Emulator Discussion and Support (https://forums.dolphin-emu.org/Forum-dolphin-emulator-discussion-and-support) +--- Forum: Support (https://forums.dolphin-emu.org/Forum-support) +--- Thread: Clamp mouse cursor to window? (/Thread-clamp-mouse-cursor-to-window) |
Clamp mouse cursor to window? - Rezulux - 01-06-2016 Hey, I did a quick search around and didn't find anything on the subject, so apologies if this has already been answered. I was curious if the ability to clamp the mouse cursor to the Dolphin game window is planned or in the works, or if it's already in the program and I haven't been able to find it? I'm trying to use my mouse as a Wiimote for FPS games like the Metroid Prime Trilogy, but I have a multi-monitor setup and it's very often that my mouse leaves the game window and causes my aim to freak out. While I could disable my other monitors while I play, it would be a huge hassle and I'd just rather not play FPS games in Dolphin if that were the case. If it's not in Dolphin or not planned, if anyone knows of an external solution to clamp the cursor to a specific area of the screen, that would work as well! Thank you in advance! RE: Clamp mouse cursor to window? - Helios - 01-06-2016 I was actually trying to do this recently. We don't support this. You'll have to find a third party program to do it. RE: Clamp mouse cursor to window? - Rezulux - 01-06-2016 Ah, that's a shame. I do hope it gets figured out at some point in the future! I'll look around for a program to clamp the cursor manually then, unless you or anyone around already has experience with clamping software and can point me in the right direction? EDIT: I did find a program called Cursor Lock, which seems highly customizable and doesn't appear to be a virus so far. It successfully locks the cursor to the screen, which is all I was looking for, hopefully this helps anyone else who is having the same issue! RE: Clamp mouse cursor to window? - Jamesbande - 08-06-2017 I've made a little program in C# for clamping problem when using Dolphin with multi-screen configuration. If Dolphin want my code , I can give it. Use it Only in Dolphin, and close it after Dolphin use. Problem here is if you play a game like Call Of Duty online, the program will consider this as a cheat program and you i'll never be able to play online with your game. So i'm not responsable if that kind of problem append. The interface is ugly and I need to work on it. But it do the job. Instruction Start the mouse clamper -> enter a screen number push apply Start Dolphin -> load your game enjoy Here my google share link for my Mouse Clamper https://drive.google.com/open?id=0B9t8nxPDEVc5QkR0bnFRbG1MMVk the file name is CursorToSnipeToWindow.exe Regard, RE: Clamp mouse cursor to window? - CyberShadow - 10-02-2017 Well, I got tired of the mouse cursor slipping to another monitor every once in a while. It became a constant source of frustration, and I had to do something about it. (01-06-2016, 09:45 AM)Helios Wrote: We don't support this. That's too bad. Actually a little funny how such amazing technical feats like Uber shaders are accomplished, yet such apparently simple and obvious usability improvements are not on the table. I guess the difficulty is due to needing to implement this across all the various window systems / GUI toolkits that Dolphin supports? (01-06-2016, 09:45 AM)Helios Wrote: You'll have to find a third party program to do it. I did not find one for Linux (X11), so I wrote and added the functionality to hax11: https://github.com/CyberShadow/hax11/commit/54a07fbca6fabf46b16a8e7fbe090004454dfb52 (It was more work than just that one commit, as I needed to implement X11 request injection first. The X11 protocol specification wasn't detailed enough to describe how sequence numbers of event replies were assigned.) I wish I didn't need to, though. (08-06-2017, 08:59 AM)Jamesbande Wrote: I've made a little program in C# for clamping problem when using Dolphin with multi-screen configuration. Good job. However, your program is inefficient is incorrect. Instead of changing mouse cursor coordinates, you should use ClipCursor. Changing the coordinates one axis at a time is also not very correct. I needed to write a similar program while I was still using Windows. Here it is: https://github.com/CyberShadow/AutoMouseLock RE: Clamp mouse cursor to window? - JMC47 - 10-02-2017 Just because Dolphin doesn't support something doesn't mean it's off the table. Someone who is an expert in graphics may not want/know how to do something like mess with Wii Remote cursors and stuff. It's Open Source, if you want to integrate the feature in Dolphin and make a pull request, go for it! I'm sure people would like something like this, and it'd at least provide some kind of feedback. |