• 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 ... 293 294 295 296 297 ... 1189 Next »

Clamp mouse cursor to window?
View New Posts | View Today's Posts

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Thread Modes
Clamp mouse cursor to window?
01-06-2016, 09:33 AM
#1
Rezulux
Unregistered
 
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!
Reply
01-06-2016, 09:45 AM
#2
Helios Offline
Stellaaaaaaa
**********
Developers (Some Administrators and Super Moderators)
Posts: 4,397
Threads: 15
Joined: May 2012
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.
Find
Reply
01-06-2016, 09:51 AM
#3
Rezulux
Unregistered
 
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!
Reply
08-06-2017, 08:59 AM
#4
Jamesbande
Unregistered
 
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,
Reply
10-02-2017, 10:48 AM
#5
CyberShadow
Unregistered
 
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
Reply
10-02-2017, 11:25 AM
#6
JMC47 Offline
Content Producer
*******
Content Creators (Moderators)
Posts: 6,542
Threads: 29
Joined: Feb 2013
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.
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