SFML community forums

Help => Window => Topic started by: e_barroga on June 28, 2009, 10:44:55 pm

Title: Window.GetInput().GetMouseX()
Post by: e_barroga 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?
Title: Window.GetInput().GetMouseX()
Post by: Laurent 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.
Title: Window.GetInput().GetMouseX()
Post by: e_barroga 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.
Title: Window.GetInput().GetMouseX()
Post by: Laurent on June 29, 2009, 07:54:18 am
Quote
it is restricted to a positive number.

...on your OS.