public class Buttons
{
public static UInt32
X = 2104320,
O = 512,
Square = 67108864,
Triangle = 8,
L3 = 1074003968,
R3 = 536870912,
L2 = 72704,
R2 = 131072,
L1 = 1048704,
R1 = 2147483648,
Crouch = 4194304,
Prone = 8388608,
StartButton = 4;
}
public Boolean ButtonPressed(Int32 clientIndex, UInt32 Button)
{
if (PS3Lib.ReadUInt32((UInt32)G_Client(clientIndex) + 0x271
== Button)
return true;
else return false;
}
public Int32 G_Client(Int32 clientIndex)
{
return (Int32)0x13950C8 + 0x2A38 * clientIndex;
}
public static UInt32 ReadUInt32(uint offset)
{
Byte[] YoLo= GetMemory(offset, 4);
Array.Reverse(YoLo, 0, 4);
return BitConverter.ToUInt32(YoLo, 0);
}
public byte[] GetMemory(uint address, int length)
{
byte[] buffer = new byte[length];
PS3TMAPI.ProcessGetMemory(0, PS3TMAPI.UnitType.PPU, processID, 0L, (ulong)address, ref buffer);
return buffer;
}
private void TestButtons()
{
if (ButtonPressed(0, Buttons.X))
MessageBox.Show("Client 0 Pressed X");
}
public class Buttons
{
public static UInt32
X = 1843200,
O = 147456,
Square = 4,
Triangle = 134217728,
L3 = 1088,
R3 = 32,
L2 = 131328,
R2 = 512,
L1 = 2147487744,
R1 = 128,
Crouch = 16384,
Prone = 32768,
StartButton = 67108864;
}
public Boolean ButtonPressed(Int32 clientIndex, UInt32 Button)
{
if (PS3Lib.ReadUInt32((UInt32)G_Client(clientIndex) + 0x271
== Button)
return true;
else return false;
}
public Int32 G_Client(Int32 clientIndex)
{
return (Int32)0x13950C8 + 0x2A38 * clientIndex;
}
public static UInt32 ReadUInt32(uint offset)
{
Byte[] YoLo= GetMemory(offset, 4);
Array.Reverse(YoLo, 0, 4);
return BitConverter.ToUInt32(YoLo, 0);
}
public byte[] GetMemory(uint address, int length)
{
byte[] buffer = new byte[length];
PS3TMAPI.ProcessGetMemory(0, PS3TMAPI.UnitType.PPU, processID, 0L, (ulong)address, ref buffer);
return buffer;
}
private void TestButtons()
{
if (ButtonPressed(0, Buttons.X))
MessageBox.Show("Client 0 Pressed X");
}
Copyright © 2026, NextGenUpdate.
All Rights Reserved.