public static void GetMemory(uint Address, ref byte[] bytes)
{
PS3TMAPI.ProcessGetMemory(0, PS3TMAPI.UnitType.PPU, ProcessID, 0, Address, ref bytes);
}
public class Buttons
{
public static int
X = 0x01,
O = 0x02,
Square = 0x03,
Triangle = 0x04,
L1 = 0x05,
R1 = 0x06,
L2 = 0x12,
R2 = 0x13,
R3 = 0x11,
Dpad_Up = 0x14,
Dpad_Down = 0x15,
Dpad_Left = 0x16,
Dpad_Right = 0x17,
Start = 0x0E,
Select = 0x0F;
}
private bool Key_IsDown(int localClientIndex, int buttonsIndex)
{
if (buttonsIndex < 0) return false;
byte[] buttons = new byte[4];
GetMemory((uint)(0xC8B6C0 + (buttonsIndex << 4) + (localClientIndex * 0xD2
), ref buttons);
Array.Reverse(buttons);
return BitConverter.ToInt32(buttons, 0) == 1;
}
if (Key_IsDown(0, Buttons.X))
{
MessageBox.Show("Client 0 Pressed X");
}
if (Key_IsDown(0, Buttons.O))
{
MessageBox.Show("Client 0 Pressed O");
}
public static void GetMemory(uint Address, ref byte[] bytes)
{
PS3TMAPI.ProcessGetMemory(0, PS3TMAPI.UnitType.PPU, ProcessID, 0, Address, ref bytes);
}
public class Buttons
{
public static int
X = 0x01,
O = 0x02,
Square = 0x03,
Triangle = 0x04,
L1 = 0x05,
R1 = 0x06,
L2 = 0x12,
R2 = 0x13,
R3 = 0x11,
Dpad_Up = 0x14,
Dpad_Down = 0x15,
Dpad_Left = 0x16,
Dpad_Right = 0x17,
Start = 0x0E,
Select = 0x0F;
}
private bool Key_IsDown(int localClientIndex, int buttonsIndex)
{
if (buttonsIndex < 0) return false;
byte[] buttons = new byte[4];
GetMemory((uint)(0xC8B6BC + (buttonsIndex << 4) + (localClientIndex * 0xD2
), ref buttons);
Array.Reverse(buttons);
return BitConverter.ToInt32(buttons, 0) == 1;
}
if (Key_IsDown(0, Buttons.X))
{
MessageBox.Show("Client 0 Pressed X");
}
if (Key_IsDown(0, Buttons.O))
{
MessageBox.Show("Client 0 Pressed O");
}
Copyright © 2026, NextGenUpdate.
All Rights Reserved.