A button that can tell when it's pressed or released, and can glow with a LED embedded in it.
true if the button is currently pressed,
A boolean flag which will be true only in the time tick the corresponding button changes its state to pressed.
A boolean flag which will be true only in the time tick the corresponding button changes its state to released.
An InputSource to be used to trigger the button state.
The lit/unlit state of the Led of this button.
The color of the Led of this button.
Triggered when the LedButton is pressed or released.
true if the button was just pressed.
true is the button was just released.
You can select different symbols to be printed on some sizes of buttons in the bottom screen of your Multitool.
You can tie the state of the button and the state of the LED together to make a button light up while it's pressed:
-- LED state always being set to Button state every tick
gdt.LedButton0.LedState = gdt.LedButton0.ButtonState