TouchScreenButton¶
Inherits: Node2D < CanvasItem < Node < Object
Category: Core
Brief Description¶
Button for touch screen devices.
Member Functions¶
bool | is_pressed ( ) const |
Signals¶
- pressed ( )
Emitted when the button is pressed (down).
- released ( )
Emitted when the button is released (up).
Member Variables¶
- String action - The button’s action. Actions can be handled with InputEventAction.
- Texture pressed - The button’s texture for the pressed state.
Enums¶
- VISIBILITY_ALWAYS = 0 — Always visible.
- VISIBILITY_TOUCHSCREEN_ONLY = 1 — Visible on touch screens only.
Description¶
Button for touch screen devices. You can set it to be visible on all screens, or only on touch devices.