Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
InputComponent Class Reference
Inheritance diagram for InputComponent:

Classes

struct  ScreenHoverButtonMapping
struct  PressStats

Public Types

enum class  PressType : int { Single = 0 , Double = 1 }
enum class  PressType : int { Single = 0 , Double = 1 }

Public Member Functions

virtual ::std::unique_ptr<::UIComponent > clone (::UIControl &cloneOwner) const
virtual void reset ()
virtual void onVisibilityChanged (bool visible)
MCAPI::InputComponent::PressType _detectDoubleClick (uint buttonId, ::ButtonState state, ::glm::vec2 const &pointerPosition, bool isTTSTouchEnabled)
MCAPI bool _getContentPanelHover (::glm::vec2 const &pointerPosition)
MCAPI bool _sendButtonScreenEvent (::ScreenInputContext &context, ::ScreenButtonMapping const &buttonMapping, ::ButtonState state, ::glm::vec2 const &pointerPosition, ::VisualTree &visualTree, ::UIAnimationController &animationController, ::InputMode inputMode)
MCAPI bool _sendHoverScreenEvent (::ScreenInputContext &context, ::VisualTree &visualTree, ::UIAnimationController &animationController, ::glm::vec2 const &position, bool alreadyHandled)
MCAPI bool _shouldHandleControllerDirection (::DirectionId directionId, ::glm::vec2 const &deltaPosition)
MCAPI bool _shouldHandlePressedMapping (::ScreenButtonMapping const &buttonMapping, uint buttonId, ::ButtonState state, ::glm::vec2 const &pointerPosition, ::InputMode inputMode)
MCAPI::ButtonHandleResult handleButtonEvent (::VisualTree &visualTree, ::UIAnimationController &animationController, ::ScreenInputContext &context, uint buttonId, ::ButtonState state, ::glm::vec2 const &pointerPosition, ::InputMode inputMode, bool isTTSTouchEnabled)
MCAPI bool handleControllerDirection (::VisualTree &visualTree, ::UIAnimationController &animationController, ::ScreenInputContext &context, ::DirectionId directionId, ::glm::vec2 const &deltaPosition, bool alreadyHandled)
MCAPI bool handleFocusLocation (::VisualTree &visualTree, ::UIAnimationController &animationController, ::ScreenInputContext &context, ::glm::vec2 const &position, bool alreadyHandled)
MCAPI bool handlePointerLocation (::VisualTree &visualTree, ::UIAnimationController &animationController, ::ScreenInputContext &context, ::glm::vec2 const &position, ::glm::vec2 const &deltaPosition, bool alreadyHandled)
MCAPI bool isWithinClipRegion (::glm::vec2 const &pointerPosition) const
MCAPI ::std::unique_ptr<::UIComponent > $clone (::UIControl &cloneOwner) const
MCAPI void $reset ()
MCAPI void $onVisibilityChanged (bool visible)
virtual::ComponentReceiveActionType receive (::VisualTree &visualTree, ::ScreenInputContext &context, ::UIAnimationController &animationController, ::ScreenEvent const &screenEvent)
virtual::ComponentReceiveActionType receive (::ScreenEvent const &screenEvent)
virtual void onNotifyChildAdded ()
virtual void onNotifyChildRemoved ()
virtual void onRemoved ()
virtual void onAdded ()
virtual void onEnabledChanged (bool enabled)
virtual bool isRenderableComponent () const
virtual bool isCustomFrameUpdateComponent () const
virtual bool onLayoutChange ()
virtual void reload (::UIComponent const &rhs)
virtual::std::string const & getTextToSpeechComponentValue () const
MCAPI::ComponentReceiveActionType $receive (::VisualTree &visualTree, ::ScreenInputContext &context, ::UIAnimationController &animationController, ::ScreenEvent const &screenEvent)
MCAPI::ComponentReceiveActionType $receive (::ScreenEvent const &screenEvent)
MCAPI void $onNotifyChildAdded ()
MCAPI void $onNotifyChildRemoved ()
MCAPI void $onRemoved ()
MCAPI void $onAdded ()
MCAPI void $onEnabledChanged (bool enabled)
MCAPI bool $isRenderableComponent () const
MCAPI bool $isCustomFrameUpdateComponent () const
MCAPI bool $onLayoutChange ()
MCAPI void $reload (::UIComponent const &rhs)
MCAPI::std::string const & $getTextToSpeechComponentValue () const

Static Public Member Functions

static MCAPI void ** $vftable ()

Public Attributes

::ll::TypedStorage< 8, 24, ::std::vector<::ScreenButtonMapping > > mButtonMappings
::ll::TypedStorage< 8, 24, ::std::vector<::InputComponent::ScreenHoverButtonMapping > > mHoverButtonMappings
::ll::TypedStorage< 1, 1, ::ScreenEventScope > mRemappingMappingScope
::ll::TypedStorage< 1, 1, bool > mAlwaysHandlePointer
::ll::TypedStorage< 1, 1, bool > mAlwaysHandleControllerDirection
::ll::TypedStorage< 1, 1, bool > mHasRemappingMapping
::ll::TypedStorage< 1, 1, bool > mAlwaysListensToInput
::ll::TypedStorage< 1, 1, bool > mModal
::ll::TypedStorage< 1, 1, bool > mInlineModal
::ll::TypedStorage< 1, 1, bool > mIgnoreHoverChange
::ll::TypedStorage< 1, 1, bool > mHoverEnabled
::ll::TypedStorage< 1, 1, bool > mConsumeHoverEvents
::ll::TypedStorage< 1, 1, bool > mPreventsTouchControl
::ll::TypedStorage< 1, 1, bool > mGamepadDeflectionMode
::ll::TypedStorage< 8, 64, ::std::unordered_map< uint, ::InputComponent::PressStats > > mPressStats
::ll::TypedStorage< 8, 8, ::UIControl & > mOwner

Member Function Documentation

◆ clone()

virtual ::std::unique_ptr<::UIComponent > InputComponent::clone ( ::UIControl & cloneOwner) const
virtual

Implements UIComponent.

◆ reset()

virtual void InputComponent::reset ( )
virtual

Implements UIComponent.

◆ onVisibilityChanged()

virtual void InputComponent::onVisibilityChanged ( bool visible)
virtual

Reimplemented from UIComponent.

◆ _detectDoubleClick()

MCAPI::InputComponent::PressType InputComponent::_detectDoubleClick ( uint buttonId,
::ButtonState state,
::glm::vec2 const & pointerPosition,
bool isTTSTouchEnabled )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ _getContentPanelHover()

MCAPI bool InputComponent::_getContentPanelHover ( ::glm::vec2 const & pointerPosition)
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ _sendButtonScreenEvent()

MCAPI bool InputComponent::_sendButtonScreenEvent ( ::ScreenInputContext & context,
::ScreenButtonMapping const & buttonMapping,
::ButtonState state,
::glm::vec2 const & pointerPosition,
::VisualTree & visualTree,
::UIAnimationController & animationController,
::InputMode inputMode )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ _sendHoverScreenEvent()

MCAPI bool InputComponent::_sendHoverScreenEvent ( ::ScreenInputContext & context,
::VisualTree & visualTree,
::UIAnimationController & animationController,
::glm::vec2 const & position,
bool alreadyHandled )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ _shouldHandleControllerDirection()

MCAPI bool InputComponent::_shouldHandleControllerDirection ( ::DirectionId directionId,
::glm::vec2 const & deltaPosition )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ _shouldHandlePressedMapping()

MCAPI bool InputComponent::_shouldHandlePressedMapping ( ::ScreenButtonMapping const & buttonMapping,
uint buttonId,
::ButtonState state,
::glm::vec2 const & pointerPosition,
::InputMode inputMode )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ handleControllerDirection()

MCAPI bool InputComponent::handleControllerDirection ( ::VisualTree & visualTree,
::UIAnimationController & animationController,
::ScreenInputContext & context,
::DirectionId directionId,
::glm::vec2 const & deltaPosition,
bool alreadyHandled )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ handleFocusLocation()

MCAPI bool InputComponent::handleFocusLocation ( ::VisualTree & visualTree,
::UIAnimationController & animationController,
::ScreenInputContext & context,
::glm::vec2 const & position,
bool alreadyHandled )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ handlePointerLocation()

MCAPI bool InputComponent::handlePointerLocation ( ::VisualTree & visualTree,
::UIAnimationController & animationController,
::ScreenInputContext & context,
::glm::vec2 const & position,
::glm::vec2 const & deltaPosition,
bool alreadyHandled )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ isWithinClipRegion()

MCAPI bool InputComponent::isWithinClipRegion ( ::glm::vec2 const & pointerPosition) const
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $clone()

MCAPI ::std::unique_ptr<::UIComponent > InputComponent::$clone ( ::UIControl & cloneOwner) const
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $reset()

MCAPI void InputComponent::$reset ( )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $onVisibilityChanged()

MCAPI void InputComponent::$onVisibilityChanged ( bool visible)
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $vftable()

MCAPI void ** InputComponent::$vftable ( )
static
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $receive() [1/2]

MCAPI::ComponentReceiveActionType UIComponent::$receive ( ::VisualTree & visualTree,
::ScreenInputContext & context,
::UIAnimationController & animationController,
::ScreenEvent const & screenEvent )
inherited
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $receive() [2/2]

MCAPI::ComponentReceiveActionType UIComponent::$receive ( ::ScreenEvent const & screenEvent)
inherited
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $onNotifyChildAdded()

MCAPI void UIComponent::$onNotifyChildAdded ( )
inherited
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $onNotifyChildRemoved()

MCAPI void UIComponent::$onNotifyChildRemoved ( )
inherited
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $onRemoved()

MCAPI void UIComponent::$onRemoved ( )
inherited
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $onAdded()

MCAPI void UIComponent::$onAdded ( )
inherited
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $onEnabledChanged()

MCAPI void UIComponent::$onEnabledChanged ( bool enabled)
inherited
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $isRenderableComponent()

MCAPI bool UIComponent::$isRenderableComponent ( ) const
inherited
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $isCustomFrameUpdateComponent()

MCAPI bool UIComponent::$isCustomFrameUpdateComponent ( ) const
inherited
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $onLayoutChange()

MCAPI bool UIComponent::$onLayoutChange ( )
inherited
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $reload()

MCAPI void UIComponent::$reload ( ::UIComponent const & rhs)
inherited
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $getTextToSpeechComponentValue()

MCAPI::std::string const & UIComponent::$getTextToSpeechComponentValue ( ) const
inherited
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

The documentation for this class was generated from the following files: