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

Base representation of an update context. More...

Inheritance diagram for menu::MUpdateContext:
System::Object menu::MUpdateContextPS3

Public Member Functions

Int getPadButtonState (Int port_no)
 Gets the press/hold status of a button. More...
 
Int getLastPadButtonState (Int port_no)
 Gets the last press/hold status of a button. More...
 
Float getPadAnalogChannel (Int port_no, Int channel)
 Returns analog channel value for the provided port and channel. More...
 
Float getLastPadAnalogChannel (Int port_no, Int channel)
 Returns the last analog channel value for the provided port and channel. More...
 
String getPadDeviceName (Int port_no)
 Returns the name of a port/controller. i.e "SIXAXIS". More...
 
String getPadDeviceType (Int port_no)
 Returns the name of a port/controller. i.e "pad". More...
 
void createRenderContext ()
 Stubbed. More...
 
Int getRenderContextCount ()
 Gets the count of created render contexts. More...
 
MRenderContext getRenderContext (Int window_num)
 
MBlob loadFile (String path)
 Loads any file from the current directory (basically "/") More...
 
MBlob loadHostFile (String path)
 Stubbed. More...
 
Int saveHostFile (String path, MBlob data)
 Stubbed. More...
 
void loadGpb (String base_dir, String gpb_name, Bool region=false)
 Loads a GPB file globally. More...
 
void loadGpbFromMC (String path)
 Stubbed. More...
 
Int existGpbBinary (String name)
 Returns whether a specified GPB binary exists (does not check if file exists!) More...
 
MBlob getGpbBinary (String name)
 Gets a gpb file within the registered ones. More...
 
void unloadGpb (String gpb_dir, String gpb_name=nil)
 Unloads a specified GPB. More...
 
String translate (String category, String pair)
 
String translate (MNode node_name, String sub_category, String pair)
 
void getPortBlockWindowEvent ()
 Stubbed. More...
 
void setPortBlockWindowEvent ()
 Stubbed. More...
 
void vibratePad (Int port_no, Float time_sec=1.0, Float small_motor_intensity=1.0, Float large_motor_intensity=1.0)
 Vibrates the pad/controller. More...
 
void addRenderTask (Object unk, Object unk2, Object unk3,...)
 
void executeRenderTask ()
 
void createCaptureBuffer ()
 
void releaseCaptureBuffer ()
 
void createWorkBuffer ()
 Same as createCaptureBuffer() More...
 
void releaseWorkBuffer ()
 Same as releaseCaptureBuffer() More...
 
- 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...
 

Static Public Member Functions

static void Sync (Float time=1.0)
 

Public Attributes

Object device
 Getter-only. More...
 
Bool zoom_for_SD
 
Bool is_SD
 
Bool is_4x3
 
Int display_width
 
Int display_height
 
Float display_margin
 
Float cursor_speed_ratio
 Partially stubbed. Always returns 1.0, setter also returns 1.0. More...
 
Object repeat_start
 Stubbed. More...
 
Object repeat_speed
 Stubbed. More...
 
- 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

Base representation of an update context.

Definition at line 8 of file MUpdateContext.cpp.

Member Function Documentation

◆ addRenderTask()

void menu::MUpdateContext::addRenderTask ( Object  unk,
Object  unk2,
Object  unk3,
  ... 
)

◆ createCaptureBuffer()

void menu::MUpdateContext::createCaptureBuffer ( )

◆ createRenderContext()

void menu::MUpdateContext::createRenderContext ( )

Stubbed.

◆ createWorkBuffer()

void menu::MUpdateContext::createWorkBuffer ( )

◆ executeRenderTask()

void menu::MUpdateContext::executeRenderTask ( )

◆ existGpbBinary()

Int menu::MUpdateContext::existGpbBinary ( String  name)

Returns whether a specified GPB binary exists (does not check if file exists!)

◆ getGpbBinary()

MBlob menu::MUpdateContext::getGpbBinary ( String  name)

Gets a gpb file within the registered ones.

◆ getLastPadAnalogChannel()

Float menu::MUpdateContext::getLastPadAnalogChannel ( Int  port_no,
Int  channel 
)

Returns the last analog channel value for the provided port and channel.

This does not actually return the last channel value if no channel are currently in use.

Parameters
port_noPort number. 0 would be the first controller/port.
channelChannel.
  • 0 = RX
  • 1 = RY
  • 2 = LX
  • 3 = LY
Returns
Value between 0.0 and 1.0 where 1.0 is fully pressed

◆ getLastPadButtonState()

Int menu::MUpdateContext::getLastPadButtonState ( Int  port_no)

Gets the last press/hold status of a button.

Parameters
port_noPort number. 0 would be the first controller/port.

This does not actually return the last button that was pressed if no keys are currently being pressed.

Returns
Buttons pressed as a bit flag.
  • 0x01 = D-PAD UP
  • 0x02 = D-PAD DOWN
  • 0x04 = D-PAD LEFT
  • 0x08 = D-PAD RIGHT
  • 0x10 = TRIANGLE
  • 0x(100)20 - CROSS?
  • 0x40 = SQUARE
  • 0x(200)80 - CIRCLE?
  • 0x100 = L1
  • 0x200 = L2
  • 0x400 = L3
  • 0x800 = R1
  • 0x1000 = R2
  • 0x2000 = R3
  • 0x4000 = START
  • 0x8000 = SELECT

◆ getPadAnalogChannel()

Float menu::MUpdateContext::getPadAnalogChannel ( Int  port_no,
Int  channel 
)

Returns analog channel value for the provided port and channel.

Parameters
port_noPort number. 0 would be the first controller/port.
channelChannel.
  • 0 = RX
  • 1 = RY
  • 2 = LX
  • 3 = LY
Returns
Value between 0.0 and 1.0 where 1.0 is fully pressed

◆ getPadButtonState()

Int menu::MUpdateContext::getPadButtonState ( Int  port_no)

Gets the press/hold status of a button.

Parameters
port_noPort number. 0 would be the first controller/port.
Returns
Buttons pressed as a bit flag.
  • 0x01 = D-PAD UP
  • 0x02 = D-PAD DOWN
  • 0x04 = D-PAD LEFT
  • 0x08 = D-PAD RIGHT
  • 0x10 = TRIANGLE
  • 0x(100)20 - CROSS?
  • 0x40 = SQUARE
  • 0x(200)80 - CIRCLE?
  • 0x100 = L1
  • 0x200 = L2
  • 0x400 = L3
  • 0x800 = R1
  • 0x1000 = R2
  • 0x2000 = R3
  • 0x4000 = START
  • 0x8000 = SELECT

◆ getPadDeviceName()

String menu::MUpdateContext::getPadDeviceName ( Int  port_no)

Returns the name of a port/controller. i.e "SIXAXIS".

Parameters
port_noPort number. 0 would be the first controller/port.
Returns
Device name. "unknown" if none, otherwise: Wheels:
  • COUGAR (Logitech GT Force)
  • JAGUAR (Logitech Driving Force)
  • CHEETAH (Logitech GT Force Pro)
  • TIGER
  • PANTHER (Logitech G25)
  • LEOPARD (Logitech Driving Force GT)
  • UNCIA (Logitech G27)
  • F430 (Thrustmaster F430)
  • TRS
  • T500GS (Thrustmaster T500RS)
  • T300RS (Thrustmaster T300RS)

Standard:

  • STANDARD
  • ANALOG
  • SINGLESHOCK
  • DUALSHOCK
  • DUALSHOCK2
  • SIXAXIS

Special:

  • PLAYSTATION_OFFSET
  • WHEEL_OFFSET
  • PLAYSTATION_PORTABLE

◆ getPadDeviceType()

String menu::MUpdateContext::getPadDeviceType ( Int  port_no)

Returns the name of a port/controller. i.e "pad".

Parameters
port_noPort number. 0 would be the first controller/port.
Returns
Device type. Valid results are:
  • pad
  • wheel
  • unknown (if none)

◆ getPortBlockWindowEvent()

void menu::MUpdateContext::getPortBlockWindowEvent ( )

Stubbed.

◆ getRenderContext()

MRenderContext menu::MUpdateContext::getRenderContext ( Int  window_num)

◆ getRenderContextCount()

Int menu::MUpdateContext::getRenderContextCount ( )

Gets the count of created render contexts.

◆ loadFile()

MBlob menu::MUpdateContext::loadFile ( String  path)

Loads any file from the current directory (basically "/")

◆ loadGpb()

void menu::MUpdateContext::loadGpb ( String  base_dir,
String  gpb_name,
Bool  region = false 
)

Loads a GPB file globally.

Parameters
base_dirBase dir for the GPB. /gpb/ or /<region id> will be appended depending on the region parameter.
gpb_nameGpb name, without the extension.
regionWhether to use region "/<region>/" instead of the "/gpb/" subdir.

◆ loadGpbFromMC()

void menu::MUpdateContext::loadGpbFromMC ( String  path)

Stubbed.

◆ loadHostFile()

MBlob menu::MUpdateContext::loadHostFile ( String  path)

Stubbed.

◆ releaseCaptureBuffer()

void menu::MUpdateContext::releaseCaptureBuffer ( )

◆ releaseWorkBuffer()

void menu::MUpdateContext::releaseWorkBuffer ( )

◆ saveHostFile()

Int menu::MUpdateContext::saveHostFile ( String  path,
MBlob  data 
)

Stubbed.

◆ setPortBlockWindowEvent()

void menu::MUpdateContext::setPortBlockWindowEvent ( )

Stubbed.

◆ Sync()

static void menu::MUpdateContext::Sync ( Float  time = 1.0)
static

◆ translate() [1/2]

String menu::MUpdateContext::translate ( MNode  node_name,
String  sub_category,
String  pair 
)

◆ translate() [2/2]

String menu::MUpdateContext::translate ( String  category,
String  pair 
)

◆ unloadGpb()

void menu::MUpdateContext::unloadGpb ( String  gpb_dir,
String  gpb_name = nil 
)

Unloads a specified GPB.

Parameters
gpb_dirDirectory
gpb_nameGpb name without extension, if not provided, uses ""

s/gpb/s.gpb

◆ vibratePad()

void menu::MUpdateContext::vibratePad ( Int  port_no,
Float  time_sec = 1.0,
Float  small_motor_intensity = 1.0,
Float  large_motor_intensity = 1.0 
)

Vibrates the pad/controller.

Member Data Documentation

◆ cursor_speed_ratio

Float menu::MUpdateContext::cursor_speed_ratio

Partially stubbed. Always returns 1.0, setter also returns 1.0.

Definition at line 193 of file MUpdateContext.cpp.

◆ device

Object menu::MUpdateContext::device

Getter-only.

Definition at line 13 of file MUpdateContext.cpp.

◆ display_height

Int menu::MUpdateContext::display_height

Definition at line 177 of file MUpdateContext.cpp.

◆ display_margin

Float menu::MUpdateContext::display_margin

Definition at line 178 of file MUpdateContext.cpp.

◆ display_width

Int menu::MUpdateContext::display_width

Definition at line 176 of file MUpdateContext.cpp.

◆ is_4x3

Bool menu::MUpdateContext::is_4x3

Definition at line 175 of file MUpdateContext.cpp.

◆ is_SD

Bool menu::MUpdateContext::is_SD

Definition at line 174 of file MUpdateContext.cpp.

◆ repeat_speed

Object menu::MUpdateContext::repeat_speed

Stubbed.

Definition at line 199 of file MUpdateContext.cpp.

◆ repeat_start

Object menu::MUpdateContext::repeat_start

Stubbed.

Definition at line 196 of file MUpdateContext.cpp.

◆ zoom_for_SD

Bool menu::MUpdateContext::zoom_for_SD

Definition at line 173 of file MUpdateContext.cpp.


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