Class Leap::PhysicalHands::PhysicalHandsButtonToggle¶
- class Leap.PhysicalHands.PhysicalHandsButtonToggle : public Leap.PhysicalHands.PhysicalHandsButton¶
Class for toggling a button using physical hands.
Public Functions
- void ToggleButtonState (bool shouldFirePressEvents = false)¶
Toggles the button state.
- Param shouldFirePressEvents
Indicates if press events should be fired.
- void SetTogglePressed (bool shouldFirePressEvents = false)¶
Sets the button to the pressed state.
- Param shouldFirePressEvents
Indicates if press events should be fired.
- void SetToggleUnPressed (bool shouldFirePressEvents = false)¶
Sets the button to the unpressed state.
- Param shouldFirePressEvents
Indicates if press events should be fired.
Properties
- bool IsToggled { get; set; }¶
Indicates whether the button is currently toggled.