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

Data object PointerButton

interface struct PointerButton
Interface that encapsulates button interface of a pointer device.

Fields

keyCode

com.amazon.kepler.input.events.KeyCode — Required
Returns key code. Note, key code for ‘a’ or ‘A’ would be same. Use keyName() for that purpose.

keyState

com.amazon.kepler.input.events.KeyState — Required
Returns key state. Valid states are UP, DOWN and REPEAT.

pressedPosInPixel

PointF — Required
Returns position of the pointer button in surface local coordinate in logical pixel unit when it was pressed.
Last modified on October 29, 2026