Mouse

ms.pos.x and ms.pos.y can be used to access the x and y coordinates of the mouse. They are relative to the scrn, not window. These can be used if you don't want to use msg passing. ms.pos.z is the wheel. ms.pos_text.x and ms.pos_text.y are the text column and row. See ::/Demo/Games/Maze.HC. See CMsStateGlbls and CMsHardStateGlbls. The hard designation, as in ms_hard, represents hardware layer items before the application of an abstraction layer. //**** ms_hard.pos.x=ms_hard.prescale.x*ms_hard.scale.x*ms_grid.x_speed; ms.presnap.x=ToI64(ms.scale.x*ms_hard.pos.x)+ms.offset.x; if (ms_grid.snap) ms.pos.x=Trunc(ms.presnap.x/ms_grid.x)*ms_grid.x+ms_grid.x_offset; else ms.pos.x=ms.presnap.x; //**** CGridGlbls Class class CGridGlbls CMsHardStateGlbls Class class CMsHardStateGlbls CMsStateGlbls Class class CMsStateGlbls GridInit Funct Init mouse grid struct. See ::/Demo/Graphics/Grid.HC. InSetMs Funct Move mouse to spot at certain speed. MsSet Funct Note: Generates a message. See MsSet(). ms GlbVar CMsStateGlbls ms,ms_last; ms_grid GlbVar CGridGlbls ms_grid; //See ::/Demo/Graphics/Grid.HC. ms_hard GlbVar CMsHardStateGlbls ms_hard,ms_hard_last;

Mouse/Ptr

DrawGrabMs Funct This is a callback. See ::/Demo/Graphics/Grid.HC. DrawStdMs Funct This is a callback. See ::/Demo/Graphics/Grid.HC. DrawWaitMs Funct This is a callback. See ::/Demo/Graphics/Grid.HC.