Code: Select all
*MyScreen.Screen = OpenScreen(0,320,200,8,0)
mouseX = *MyScreen\MouseX ; Assuming than the Screen structure contains a MouseX field
Can someone explain this example a bit? I understand pointers 90%, but the fact that this example uses the OpenScreen() function is what throws me off a little.
Thanks in advance!
Russell
p.s. If other commands return a pointer to a structure, then it may mean we can get the address of sprites, images, etc.... (If we can get the format of the returned structure - what fields are available, etc).


