April 16, 2024, 05:05:04 AM

News:

Own IWBasic 2.x ? -----> Get your free upgrade to 3.x now.........


Turn off the mouse pointer in DirectX?

Started by carpman2007, March 19, 2009, 10:47:31 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

carpman2007

Hello all,

Forgive me if this question has been asked already -- I looked around but couldn't find an answer.

How does one, from within an EB program, hide the mouse pointer in full-screen DirectX mode?

Ionic Wind Support Team

For 2D or 3D?

For 2D programs:

SETCURSOR FrontBuffer,@CSCUSTOM,0

Will do it and

SETCURSOR FrontBuffer,@CSARROW

Brings it back. 

For 3D programs the commands are the same, just substitute your window variable name for FrontBuffer.

Paul.
Ionic Wind Support Team

ZeroDog

can't you use the frontbuffer in a fullscreen d3d screen as well?

Ionic Wind Support Team

FrontBuffer/BackBuffer are reserved variable name only used for 2D screens (DX7).   I was actually wrong about the 3D screen method, was thinking about the old 3D engine we used to have,

For a 3D screen use the m_win member variable of your screen object.

C3DScreen s
s.CreateWindowed(0,0,640,480,@CAPTION|@SIZE,"3D Test - ESC exits",NULL,false)
SETCURSOR s.m_win,@CSCUSTOM,0
...

SETCURSOR s.m_win,@CSARROW
Ionic Wind Support Team