GTAdhocAPI
Gran Turismo (6) Adhoc API Documentation
Loading...
Searching...
No Matches
menu::MKeyEvent Class Reference

Key Event. More...

Inheritance diagram for menu::MKeyEvent:
menu::MWidgetEvent menu::MNodeEvent menu::MEvent System::Object menu::MKeyPressEvent menu::MKeyReleaseEvent

Public Member Functions

 MKeyEvent (MRenderContext context, MWidget widget, Int keysym, Int port_data, Float unk, Float unk2)
 Constructs a key event from the specified render context, widget, and data. More...
 
- Public Member Functions inherited from menu::MEvent
Int dispatchEvent ()
 
- Public Member Functions inherited from System::Object
 Object ()
 constructor taking no param More...
 
Bool isInstanceOf (Class classType)
 Returns whether an object is of a specific class/type. More...
 
Object getDeepCopy ()
 Gets a deep copy of this object. More...
 
void setDeepCopy (Object obj)
 Unk. More...
 
String dump ()
 Dumps all info about an object. More...
 
Object getObjectAttribute (string path)
 
void setObjectAttribute (string path, Object value)
 
Bool hasPrimitiveInterface ()
 Returns whether this object has a primitive interface. More...
 
Bool toBool ()
 Casts this object to Bool. More...
 
Byte toByte ()
 Casts this object to Byte. More...
 
Short toShort ()
 Casts this object to Short. More...
 
Int toInt ()
 Casts this object to Int. More...
 
Long toLong ()
 Casts this object to Long. More...
 
UByte toUByte ()
 Casts this object to UByte. More...
 
UShort toUShort ()
 Casts this object to UShort. More...
 
UInt toUInt ()
 Casts this object to UInt. More...
 
ULong toULong ()
 Casts this object to ULong. More...
 
Float toFloat ()
 Casts this object to Float. More...
 
Double toDouble ()
 Casts this object to Double. More...
 
String toString ()
 Casts this object to String. More...
 
Symbol toSymbol ()
 Casts this object to Symbol. More...
 
Bool hasArrayInterface ()
 Returns whether this object has an Array interface. More...
 
Int getArrayCount ()
 Gets the Array item count for this object. More...
 
void setArrayCount ()
 Sets the Array item count for this object. More...
 
Object getArrayElement (Object arg0)
 Gets an Array item for this object. More...
 
void setArrayElement (Object arg0, Object arg1)
 Sets the Array item for this object. More...
 
Bool hasMapInterface ()
 Returns whether this object has a Map interface. More...
 
int getMapCount ()
 Returns the count of items in the map. More...
 
void setMapElement (Object arg0, Object arg1)
 Returns whether the Map has a specific object key. Bool hasMapElement(Object arg0);. More...
 
Object getMapElement (Object arg0)
 Gets a Map element by key. More...
 
void hasGeneratorInterface ()
 Returns whether this object has a generator interface. More...
 
Iterator generator ()
 Returns generator (?) More...
 
void hasIteratorInterface ()
 Returns whether this object has an iterator. More...
 
Iterator iterator ()
 Gets the iterator for this object. More...
 
void hasVariableInterface ()
 Returns whether this object is a variable. More...
 
void hasFunctionInterface ()
 Returns whether this object has a function interface. More...
 
Object call ()
 Calls this object as a function. More...
 
Bool hasByteDataInterface ()
 Returns whether this object has a byte data interface. More...
 
Int getByteDataCount ()
 Returns the ByteData size for this object. More...
 
void setByteDataCount (Int count)
 Sets the ByteData size for this object. More...
 
Int getByteDataCapacity ()
 Returns the ByteData capacity for this object. More...
 
void setByteDataCapacity (Int capacity)
 Sets the ByteData capacity for this object. More...
 
ByteData getByteData ()
 Gets the underlaying ByteData. More...
 
void setByteData (ByteData bytedata)
 Sets the underlaying ByteData. More...
 
void hasObjectSelectorInterface ()
 Returns whether this object has an object selector interface. More...
 
void self ()
 Gets the get for this object if it has a get interface. More...
 
void getArchiveTree ()
 
void setArchiveTree ()
 
ByteData serialize ()
 Serializes this object. More...
 
void deserialize (ByteData serializedData)
 Deserializes this object. More...
 
void defined (Object obj)
 Returns whether a certain object is defined within this object. More...
 
Array find_all (FunctionObject func)
 Finds all the elements in this object that matches the predicates. More...
 
void each_all (FunctionObject func)
 Applies callback to all elements in this object. More...
 
Array map_all (FunctionObject< Object > func)
 Maps all the elements in this object. More...
 
Bool operator!= ()
 Returns whether this object is not equal to another. More...
 
Bool operator== ()
 Returns whether this object is equal to another. More...
 

Public Attributes

MRootWindow root_window
 Getter-only. Gets the root window associated to this event. More...
 
Int keysym
 Keycode of the key pressed. More...
 
Int port_state
 State of the port as bit flags (keys that are being pressed) More...
 
Int port_number
 Getter-only. Port number. More...
 
Int state
 Same as port_state. More...
 
Int port
 Getter-only. Same as port_number. More...
 
- Public Attributes inherited from menu::MWidgetEvent
MWidget widget
 Getter-only. Gets the widget associated with this event. More...
 
- Public Attributes inherited from menu::MNodeEvent
MRenderContext context
 Getter-only. Gets the render context associated with this event. More...
 
MNode node
 Getter-only. Gets the node associated with this event. More...
 
MWidget widget
 Getter-only. Gets the widget associated with this event. More...
 
- Public Attributes inherited from menu::MEvent
UInt serial
 Getter-only. Event ID/Serial, incremented after each event. More...
 
Int priority
 
String tag
 
Bool clear_event
 
- Public Attributes inherited from System::Object
Int rc_size
 Getter-only. Reference counter size of this object. More...
 
Object rc_class
 Getter-only. Type name of the object. More...
 
Int rc_count
 Getter-only. Reference count of this object. More...
 
Int weak_count
 Getter-only. Weak reference count of this object. More...
 
Class class_id
 Class (type) object for this object. More...
 

Detailed Description

Key Event.

Definition at line 8 of file MKeyEvent.cpp.

Constructor & Destructor Documentation

◆ MKeyEvent()

menu::MKeyEvent::MKeyEvent ( MRenderContext  context,
MWidget  widget,
Int  keysym,
Int  port_data,
Float  unk,
Float  unk2 
)
inline

Constructs a key event from the specified render context, widget, and data.

Definition at line 13 of file MKeyEvent.cpp.

Member Data Documentation

◆ keysym

Int menu::MKeyEvent::keysym

Keycode of the key pressed.

Definition at line 20 of file MKeyEvent.cpp.

◆ port

Int menu::MKeyEvent::port

Getter-only. Same as port_number.

Definition at line 35 of file MKeyEvent.cpp.

◆ port_number

Int menu::MKeyEvent::port_number

Getter-only. Port number.

Definition at line 29 of file MKeyEvent.cpp.

◆ port_state

Int menu::MKeyEvent::port_state

State of the port as bit flags (keys that are being pressed)

Flags:

  • 0x10 is unknown
  • 0x200 is right stick.

Definition at line 26 of file MKeyEvent.cpp.

◆ root_window

MRootWindow menu::MKeyEvent::root_window

Getter-only. Gets the root window associated to this event.

Definition at line 17 of file MKeyEvent.cpp.

◆ state

Int menu::MKeyEvent::state

Same as port_state.

Definition at line 32 of file MKeyEvent.cpp.


The documentation for this class was generated from the following file: