virtual_key_hide

Hides a given created virtual key previously shown on the screen of the device.

Syntax:

virtual_key_hide(index);


Argument Description
index The index of the virtual key to hide.


Returns: N/A


Description

Once you have created your virtual key for your devices, you may need to debug and test that it is correctly positioned and working properly and for that you would call the function virtual_key_show. However, you may need to toggle this view on and off, so you can also hide the virtual key with this function, using the index of the virtual key that you want to hide (previously created and stored using virtual_key_add). Once you are happy with things it is recommended that you create and place your own graphic in its area.


Example:

if global.Debug
   {
   virtual_key_show(global.Left);
   }
else
   {
   virtual_key_hide(global.Left);
   }

The above code checks the global variable "global.Debug" and if it tests true then the virtual key indexed in the variable "global.Left" will be drawn on the screen, and if it is false then the key will be hidden.


Back: Virtual Keys
Next: virtual_key_delete
© Copyright YoYo Games Ltd. 2018 All Rights Reserved