Originally Posted By: bluemax
Why can't I get a mouse in full screen with this code?

function main()
{
video_mode = 8;
mouse_map=max_head;
mouse_mode=2;
while (mouse_mode > 0)
{
vec_set(mouse_pos, mouse_cursor);
wait(1);
}
...
}


use this code to switch the mouse with [M] on/off

Code:
//#include <acknex.h>
#include <default.c>

#define PRAGMA_PATH "%EXE_DIR%\templates\images";

BMAP* arrow = "arrow_red.pcx";

function on_m_event(){  
  while (key_m){wait (1);}
  mouse_range = 50000; mouse_map = arrow; mouse_mode += 2; if (mouse_mode > 2){mouse_mode=0;}
  while (mouse_mode > 0) {vec_set(mouse_pos,mouse_cursor);wait(1);}
}

function main(){video_set(sys_metrics(0), sys_metrics(1), 32, 1);}



Last edited by rojart; 03/02/10 23:01.

Regards, Robert

Quote
Everything should be made as simple as possible, but not one bit simpler.
by Albert Einstein

PhysX Preview of Cloth, Fluid and Soft Body

A8.47.1P