Kanzi  3.9.9
Kanzi Engine Java API
KeyState Enum Reference

Indicates the states of a hardware key. More...

Inheritance diagram for KeyState:
[legend]

Public Member Functions

 KeyState (int value)
 Constructs a KeyState of an integer value. More...
 
 KeyState (KeyState enum_)
 Constructs a copy of a KeyState object. More...
 
int getValue ()
 Returns the integer value of the enumeration constant. More...
 
final int swigValue ()
 Returns the integer value of the enumeration constant. More...
 

Static Public Member Functions

static KeyState swigToEnum (int swigValue)
 Converts an integer value to the matching enumeration constant. More...
 
static KeyState toEnum (int value)
 Converts an integer value to the matching enumeration constant. More...
 

Public Attributes

 Pressed =(0)
 The key is pressed.
 
 Released =(1)
 The key is released.
 

Detailed Description

Indicates the states of a hardware key.

Constructor & Destructor Documentation

KeyState ( int  value)

Constructs a KeyState of an integer value.

Parameters
valueInteger value to convert to enumeration constant.
KeyState ( KeyState  enum_)

Constructs a copy of a KeyState object.

Parameters
enum_KeyState to be copy constructed.

Member Function Documentation

int getValue ( )

Returns the integer value of the enumeration constant.

Returns
Integer value.

Implements Enum.

static KeyState swigToEnum ( int  swigValue)
static

Converts an integer value to the matching enumeration constant.

Used internally by SWIG generated code.

Parameters
swigValueInteger value to convert to enumeration constant.
Returns
Enumeration constant matching the integer value.
final int swigValue ( )

Returns the integer value of the enumeration constant.

Used internally by SWIG generated code.

Returns
Integer value.
static KeyState toEnum ( int  value)
static

Converts an integer value to the matching enumeration constant.

Parameters
valueInteger value to convert to enumeration constant.
Returns
Enumeration constant matching the integer value.