Welcome,
Guest
. Please
login
or
register
. Did you miss your
activation email?
French forum
Home
Help
Search
Login
Register
SFML community forums
»
Help
»
Window
»
Window.GetInput().GetMouseX()
Print
Pages: [
1
]
Author
Topic: Window.GetInput().GetMouseX() (Read 3280 times)
0 Members and 1 Guest are viewing this topic.
e_barroga
Jr. Member
Posts: 76
Window.GetInput().GetMouseX()
«
on:
June 28, 2009, 10:44:55 pm »
I've noticed that GetMouseX() returns an int.
Why is it an int, shouldn't it return unsigned int?
Logged
Laurent
Administrator
Hero Member
Posts: 32498
Window.GetInput().GetMouseX()
«
Reply #1 on:
June 28, 2009, 11:24:09 pm »
It is relative to the window, which means that it can be negative if it's outside.
Logged
Laurent Gomila - SFML developer
e_barroga
Jr. Member
Posts: 76
Window.GetInput().GetMouseX()
«
Reply #2 on:
June 29, 2009, 02:22:26 am »
Yes, that's what I assumed but after I tested.... it is restricted to a positive number.
Try it.
Logged
Laurent
Administrator
Hero Member
Posts: 32498
Window.GetInput().GetMouseX()
«
Reply #3 on:
June 29, 2009, 07:54:18 am »
Quote
it is restricted to a positive number.
...on your OS.
Logged
Laurent Gomila - SFML developer
Print
Pages: [
1
]
SFML community forums
»
Help
»
Window
»
Window.GetInput().GetMouseX()