Mouse problems
I''m having problems drawing my mouse on screen. I use DirectInput and Direct3D8.
I get data from mouse->GetDeviceState(..., &mousedata);
mouse_pos.x = mousedata.lX;
mouse_pos.y = mousedata.lY;
And when I try to draw a sprite to the mouse position,
no cursor sprite on screen.
The sprite blit works just fine.
And don''t tell me to google, I already did that!
Thanks
quote:
mouse_pos.x = mousedata.lX;
mouse_pos.y = mousedata.lY;
Should be
mouse_pos.x += mousedata.lX;
mouse_pos.y += mousedata.lY;
Already did that. No luck!
The idea is to draw a 2d mouse sprite over 3d landscape.
An editor
[edited by - JnZ on October 13, 2003 10:29:03 AM]
[edited by - JnZ on October 13, 2003 10:29:17 AM]
The idea is to draw a 2d mouse sprite over 3d landscape.
An editor
[edited by - JnZ on October 13, 2003 10:29:03 AM]
[edited by - JnZ on October 13, 2003 10:29:17 AM]
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement