Other Projects
Corpses - Zombie Survival
Development > Triggers
(solved) How to place mouse cursor to screen coordinate?
- 8 posts
-
Bibendus Author
- Battle.net
- Bibendus
- #162 EU
- Join date
- Aug 12, 2006
- Location
- Italy
- Reputation
- 22
- Posts
- 1,104
- Projects
- 5
- Team
- Last login
- May 23, 2013
-
Mille25 Author
- Join date
- May 06, 2010
- Location
- United States
- Reputation
- 10
- Posts
- 428
- Projects
- 2
- Last login
- May 22, 2013
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.
-
Zolden Author
- Battle.net
- Zolden
- #929 EU
- Join date
- Apr 13, 2011
- Location
- Russian Federation
- Reputation
- 71
- Posts
- 1,073
- Projects
- 4
- Online now!
-
Zolden Author
- Battle.net
- Zolden
- #929 EU
- Join date
- Apr 13, 2011
- Location
- Russian Federation
- Reputation
- 71
- Posts
- 1,073
- Projects
- 4
- Online now!
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.
Last edited Dec 29, 2012 by Zolden -
Mille25 Author
- Join date
- May 06, 2010
- Location
- United States
- Reputation
- 10
- Posts
- 428
- Projects
- 2
- Last login
- May 22, 2013
But now "mouse moved" event doesn't happen. How can I get mouse movement info?
//I suppose you cant since the mouse is now locked in the middle of the screen.
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.
//Like ive said, its not possible to directly influence the position of the mouse cursor. Therefore smth like that is not possible.
- 8 posts



Zolden AuthorSubj. Saw it done in photon bikes map, but didn't find how to do it.