Amazon Developer

as

Settings
Sign out
Notifications
Alexa
Amazon Appstore
Ring
AWS
Documentation
Support
Contact Us
My Cases
Get Started
Design and Develop
Publish
Reference
Support
Native
Skip to main content

Interface IUIAxisEvent

interface IUIAxisEvent
Extends IUIWindowEvent This interface respresents axis events which can be triggered through devices having analog joystick/triggers.

Methods

getAxisValue()

float getAxisValue(com.amazon.kepler.input.events.AxisCode* axisCode)
Returns the axis value of the events for a specific axis code. Different axis code have different axis value range for eg. AXIS_LEFT_STICK_X AxisCode have value which is typically between -1.0 and 1.0 range. Refer to AxisCode for different AxisCode and their range values.

Parameters

axisCode
com.amazon.kepler.input.events.AxisCode* — Required A pointer to the specific Axis code associated to the analog joystick/triggers.

Returns

float the axis value for a specific AxisCode.
Last modified on October 29, 2026