CoolFace
Datasetpublic

hschumann2/TempleOS-Source-Code

sourceHugging Faceupdated 1y agoView on Hugging Face
0likes838downloads
Mouse.txt22 linesDownload Raw Back to Doc
1 2ms.pos.x and ms.pos.y can be used to access the x and y coordinates of the3mouse.  They are relative to the scrn, not window.  These can be used if you4don't want to use msg passing.  ms.pos.z is the wheel.5 6ms.pos_text.x and ms.pos_text.y are the text column and row.  See7::/Demo/Games/Maze.HC.8 9See CMsStateGlbls and CMsHardStateGlbls.10 11The hard designation, as in ms_hard, represents hardware layer items before the12application of an abstraction layer.13 14//****15ms_hard.pos.x=ms_hard.prescale.x*ms_hard.scale.x*ms_grid.x_speed;16ms.presnap.x=ToI64(ms.scale.x*ms_hard.pos.x)+ms.offset.x;17if (ms_grid.snap)18  ms.pos.x=Trunc(ms.presnap.x/ms_grid.x)*ms_grid.x+ms_grid.x_offset;19else20  ms.pos.x=ms.presnap.x;21//****22