SetVirtualButtonPosition
Description
Sets the position of the virtual button in screen coordinates. You can use GetVirtualWidth and GetVirtualHeight to find the current bounds of the screen. The button will be centered on the given x and y position.
Definition
SetVirtualButtonPosition( index, x, y )
void agk::SetVirtualButtonPosition( uint32_t index, float x, float y )
Parameters
- index - The ID of the virtual button to set.
- x - The x coordinate of the new position in screen coordinates.
- y - The y coordinate of the new position in screen coordinates.