I think I get it, but just want to make sure I am doing this right. When targeting BlitzMax, I would like to call the HideMouse() function, so I am doing the following.
#If TARGET="bmax" Then
Extern
Function HidePointer:Void() = "HideMouse"
Function ShowPointer:Void() = "ShowMouse"
#Else
Function HidePointer:Void()
End
Function ShowPointer:Void()
End
#Endif
and then calling HidePointer() at the end of the OnCreate() method. If for whatever reason I choose a difference target, it will just call the empty function.
I've tested it, and it works. But I just want to make sure this is the correct way of doing things. Ta :)
|