Back to main page

Windows wrapper

This interface is a wrapper for windows API calls to simplify translation of games to other programming languages.

If the user press ctrl + alt + delete, the application will loose control of the mouse pointer.

int Windows_GetCursorPos_X(void);

Returns the X coordinate of the cursor in pixels from left. The last valid or inserted X coordinate is returned if the permission is lost.

int Windows_GetCursorPos_Y(void);

Returns the Y coordinate of the cursor in pixels from the top. The last valid or inserted Y coordinate is returned if the permission is lost.

void Windows_SetCursorPos(int X, int Y);

Sets the cursor position to (X,Y) in pixels from the upper left corner. If it fails because the application have lost it's permission, nothing will happend since you can't do something about it.