com.samsung.android.sdk.penremote
Class AirMotionEvent
- java.lang.Object
-
- com.samsung.android.sdk.penremote.AirMotionEvent
-
public class AirMotionEvent extends Object
A class that extracts air motion related information from an SpenEvent.
-
-
Constructor Summary
Constructors Constructor and Description AirMotionEvent(SpenEvent spenEvent)
Create a AirMotionEvent from SpenEvent object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description float
getDeltaX()
Returns the deltaX of air motion event from previous position.float
getDeltaY()
Returns the deltaY of air motion event from previous position.long
getTimeStamp()
returns time in nanosecond at which the event happened.
-
-
-
Constructor Detail
-
AirMotionEvent
public AirMotionEvent(SpenEvent spenEvent)
Create a AirMotionEvent from SpenEvent object.- Parameters:
spenEvent
- SpenEvent has air motion information.- Since:
- 1.0.0
-
-
Method Detail
-
getDeltaX
public float getDeltaX()
Returns the deltaX of air motion event from previous position.- Returns:
- deltaX scaled between -1.0 and 1.0.
- Since:
- 1.0.0
-
getDeltaY
public float getDeltaY()
Returns the deltaY of air motion event from previous position.- Returns:
- deltaY scaled between -1.0 and 1.0.
- Since:
- 1.0.0
-
getTimeStamp
public long getTimeStamp()
returns time in nanosecond at which the event happened.- Returns:
- time in nanosecond at which the event happened.
- Since:
- 1.0.0
-
-