Hello there,
I'm using some of the code of the blaster demo, and while I was trying the input handling, I found that for some reason, the E_INPUTEVENT object is giving me the wrong values for X and Y.
Some of the code:
This gives the following (I'm using screen rotation):
TopLeft Corner : 320,0 (Should be something like 0,0)
TopRight Corner : 640,0 (OK)
BottomLeft : 320,240 (Should be 0, 480)
BottomRight : 640,240 (Should be 640,480)
Why is this happening?
By the way, using the exact same code but with a 320x240 emulator, there is no problem. The problem occurs both with my device and the VGA emulator.
Regards,
Joao
I'm using some of the code of the blaster demo, and while I was trying the input handling, I found that for some reason, the E_INPUTEVENT object is giving me the wrong values for X and Y.
Some of the code:
- Code:
E_INPUTEVENT InputEvent;
RECT x;
x.left = 0;
x.top = 0;
x.right = 100;
x.bottom = 20;
Buffer->FillRect (&x;, E_RGBX(51, 102, 153));
Buffer->DrawFont (0, 0, &Shared-;>font, InputEvent.clickx);
Buffer->DrawFont (50, 0, &Shared-;>font, InputEvent.clicky);
This gives the following (I'm using screen rotation):
TopLeft Corner : 320,0 (Should be something like 0,0)
TopRight Corner : 640,0 (OK)
BottomLeft : 320,240 (Should be 0, 480)
BottomRight : 640,240 (Should be 640,480)
Why is this happening?
By the way, using the exact same code but with a 320x240 emulator, there is no problem. The problem occurs both with my device and the VGA emulator.
Regards,
Joao