Page 1 of 1

how get values

Posted: Fri Oct 28, 2005 9:02 pm
by Guest
I want to get the values the Screen and the Position of mouse, but I use the functions, getScreenSize() and getPosition() and I want the values X and Y the position and the length the Screen.

But I do:

int valuex = (int)driver.getScreenSize().X;

and

int valuex = driver.getScreenSize().X;

and the show the message error:

inconvertible types
found: bindenlicht.Position2di
required: int
int valuex = (int)driver.getScreenSize().X;

help me, thanks

Posted: Fri Oct 28, 2005 10:07 pm
by irado
sorry !!!

this source is bindenlicht, I post the problem here because the source seemed the irrlicht.

Posted: Sat Oct 29, 2005 3:12 am
by Midnight
a

position2di x;

and a

int x;

are different things...

x.y and x.x

position2di contains 2 integers and int x,y; might work also.