vx.Button

From vx
Jump to: navigation, search

Contents

[edit] vx.Button

An internal object that represents some button's state.

[edit] Notes

As this is an internal type, you cannot create your own Button. But this class is used to represent many kinds of builtin input types, such as keys, joystick buttons and mouse buttons.

[edit] Attributes

vx.Button.pressed -> boolean (read/write)

  • Whether or not this key is being held. Setting this to false will force the button to be let go.

[edit] Methods

vx.Button:Unpress()

  • Forces a button to be let go.
Personal tools