#include <e32event.h>
class TRawEvent |
Public Attributes | |
---|---|
TInt | alpha |
struct TRawEvent::@26::@29 | key |
TInt | modifiers |
TInt | phi |
struct TRawEvent::@26::@27 | pos |
struct TRawEvent::@26::@28 | pos3D |
TInt | repeats |
TInt | scanCode |
TInt | theta |
TInt | x |
TInt | y |
TInt | z |
Protected Attributes | |
---|---|
TUint8 | iDeviceNumber |
TUint8 | iPointerNumber |
TUint | iTicks |
TUint8 | iTip |
TUint8 | iType |
union TRawEvent::@26 | iU |
Public Member Enumerations | |
---|---|
enum | TType { ENone, EPointerMove, EPointerSwitchOn, EKeyDown, ..., ERestartSystem } |
Public Member Functions | |
---|---|
TRawEvent() | |
TInt | DeviceNumber() |
TBool | IsTip() |
IMPORT_C TInt | Modifiers() |
TUint8 | PointerNumber() |
IMPORT_C TPoint | Pos() |
IMPORT_C TPoint3D | Pos3D() |
IMPORT_C TInt | Repeats() |
IMPORT_C TInt | Rotation() |
IMPORT_C TInt | ScanCode() |
IMPORT_C void | Set(TType, TInt) |
IMPORT_C void | Set(TType, TInt, TInt) |
IMPORT_C void | Set(TType) |
IMPORT_C void | Set(TType, TInt, TInt, TInt) |
IMPORT_C void | Set(TType, TInt, TInt, TInt, TInt, TInt, TInt) |
IMPORT_C void | Set(TType, TInt, TInt, TInt, TUint8) |
void | SetDeviceNumber(TInt) |
void | SetPointerNumber(const TUint8) |
IMPORT_C void | SetRepeat(TType, TInt, TInt) |
IMPORT_C void | SetRotation(TType, TInt) |
IMPORT_C void | SetTilt(TType, TInt, TInt) |
void | SetTip(TBool) |
TUint | Ticks() |
IMPORT_C TAngle3D | Tilt() |
TType | Type() |
Represents a raw hardware event as generated by hardware drivers of a pointer device, a keyboard etc.
Raw hardware events are added to the kernel's event queue.
TUint8 | iTip | [protected] |
Indicates whether the tip or head of pointing device is closer to screen.
Defines the event type.
TInt | DeviceNumber | ( | ) | const [inline] |
Gets the device number (eg. screen number)
Returns: The device number.
TBool | IsTip | ( | ) | const [inline] |
Gets the information on which end of the pointing device is closer to the screen
Returns: A Boolean indicating which end of the pointing device is closer to the screen.
IMPORT_C TInt | Modifiers | ( | ) | const |
Gets the modifiers.
See also: TRawEvent::EUpdateModifiers
Returns: The modifiers.
IMPORT_C TPoint3D | Pos3D | ( | ) | const |
Gets the Cartesian coordinates of the 3D pointer end that is closer to the screen.
Gets the 3D pointing device Cartesian coordinates.
Returns: The Cartesian coordinates of the point defined by the end of the 3D pointing device that is closer to the screen.The position.
IMPORT_C TInt | Rotation | ( | ) | const |
Gets the rotation angle of 3D pointing device.
Some 3D pointing devices support information regarding the angle formed between the physical and magnetical poles, as obtaining when rotating the pen along its main axis.
Gets the rotation angle of 3D pointing device.
Returns: The rotation angle of the 3D pointing device.The rotation angle of the 3D pointing device.
IMPORT_C void | Set | ( | TType | aType | ) |
Sets up an event without specific parameters.
Parameter | Description |
---|---|
aType | The event type. |
Sets the event up as a 3D pointer linear move and tilt and rotation change event.
Parameter | Description |
---|---|
aType | The event type. |
aX | The X position (or TPhi polar coordinate). |
aY | The Y position (or Theta polar coordinate). |
aZ | The Z position (or rotation). |
aPhi | The Phi polar coordinate. |
aTheta | The Theta polar coordinate. |
aAlpha | The rotation angle. |
Initialises the event with the supplied information Sets the event up as a 3D pointer linear move event with pointer number
Parameter | Description |
---|---|
aType | The event type. |
aX | The X position. |
aY | The Y position. |
aZ | The Z position . |
aPointerNumber | The pointer number for the event |
void | SetDeviceNumber | ( | TInt | aDeviceNumber | ) | [inline] |
Sets the device number (eg. screen number)
Parameter | Description |
---|---|
aDeviceNumber | The device number |
void | SetPointerNumber | ( | const TUint8 | aPointerNumber | ) | [inline] |
The pointer number for the event is set The pointer number should be more or equal 0 and should be less than HALData::EPointerMaxPointers, otherwise WSERV would ignore the event,ie 0 <= aPointerNumber < HALData::EPointerMaxPointers
Parameter | Description |
---|---|
aPointerNumber | Error conditions: None. |
void | SetTip | ( | TBool | aTip | ) | [inline] |
Sets the information on which end of the pointing device is closer to the screen
Parameter | Description |
---|---|
aTip | A Boolean indicating which end of the pointing device is closer to the screen. |
TUint | Ticks | ( | ) | const [inline] |
Gets the tick count value associated with the event.
Note that the interval between tick counts is hardware dependent.
Returns: The tick count value
IMPORT_C TAngle3D | Tilt | ( | ) | const |
Gets the angular spherical polar coordinates of the 3D pointer end that is closer to the screen.
See also: TAngle3D
Gets the 3D pointing device polar coordinates and rotation.
Returns: The angular spherical polar coordinates of the point defined by the end of the 3D pointing device that is closer to the screen. The polar coordinates and rotation.