Subj. Saw it done in photon bikes map, but didn't find how to do it.
what do you mean exactly? do you have a screen?
Hive Keeper Forum
Corpses - Zombie Survival
I mean teleport mouse cursor to the center of the screen. Not by moving the mouse, but by a trigger.
Lock mouse relative mode has a bug that sometimes shows the mouse cursor locked in the center of the screen.
Besides that i wouldnt know any function that moves the mouse cursor.
Starcraft Universe lead programmer
Quote from Mille25: GoLock mouse relative mode
Lock mouse relative mode
I think it's what I need, don't care about the bug. Is it trigger action or a function? Didn't find it in my russian editor. Can you tell me its name if raw (Ctrl+D) mode on? Or paste the function from Ctrl+F11 code?
native void CameraForceMouseRelative(int player, bool locked);
Thank you, it worked.
But now "mouse moved" event doesn't happen. How can I get mouse movement info?
UPD: another question: how can I force mouse cursor to come from-behind the left border if it touches the right one and vice versa? I want it to act like mario in the nes mario game. Or, in other words, I want screen to be like a cylinder instead of square.
UPD 2: Ok, I decided not to use that thing, just checking mouse move and translating screen coordinates into map coordinates.
//I suppose you cant since the mouse is now locked in the middle of the screen.
//Like ive said, its not possible to directly influence the position of the mouse cursor. Therefore smth like that is not possible.
You must login to post a comment. Don't have an account? Register to get one!