Hi !

It seems that i only had to change BMAP* to BMAP to get this code snippet to work!

Code:
BMAP arrow = EngFun.bmap_create("arrow.pcx");
EngVar.mouse_map = arrow;
EngVar.mouse_mode.IntValue = 2;
int snap_amount = 30;
double ux = 0.0;
double uy = 0.0;

while(true)
{
ux = (EngVar.mouse_cursor.x.FloatValue / snap_amount);
uy = (EngVar.mouse_cursor.y.FloatValue / snap_amount);

EngVar.mouse_pos.x.IntValue = (EngFun.integer((Var)ux).IntValue * snap_amount);
EngVar.mouse_pos.y.IntValue = (EngFun.integer((Var)uy).IntValue * snap_amount);
yield return 1;
}



Last edited by Stromausfall; 08/20/09 21:04. Reason: ups forgot to change ^^

get the C# wrapper:
for A7.85.4 and A8.30.4, Version 2.3.9
at http://acknexwrapper2.matthias-auer.net/ or visit the thread