AddVirtualButton

Description

Creates an on-screen button that can be controlled by a touch screen, mouse, or other pointer device. These are separate to physical joystick buttons or keyboard keys so you could have a virtual button with ID 1 and a real joystick button with ID 1. You may have up to 100 virtual buttons on screen at the same time. If a virtual button is on screen and is clicked or touched the button will capture that event and GetRawMouseLeftState will return 0 (up), and a touch event will not be generated for that action.

Definition

AddVirtualButton( index, x, y, size )

Parameters