Sets the position of the virtual joystick in screen coordinates.
procedure SetPosition(const P: TAgkPoint); overload;
Parameters |
Description |
const P: TAgkPoint |
The new position. |
You can use TAgkApplication.VirtualWidth and TAgkApplication.VirtualHeight to find the current bounds of the screen. The joystick will be centered on the given X and Y position. Moving a virtual joystick whilst it is in use will alter the current X and Y values being returned.
Copyright (c) 2012. All rights reserved.
|