public class Buttons
{
public static UInt32
X = 262144,
Square = 805306368,
L1 = 526336,
L2 = 8388608,
L3 = 35651584,
R1 = 16777216,
R2 = 4194304,
R3 = 67108868,
Crouch = 131072,
Prone = 65536,
StartButton = 32768;
}
public Boolean ButtonPressed(UInt32 clientIndex, UInt32 Button)
{
if (BitConverter.ToUInt32(GetBytes(0x00F477B0 + (clientIndex * 0x3700), 4), 0) == Button)
return true;
else return false;
}
public byte[] GetBytes(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");
if (ButtonPressed(0,( Buttons.L1 + Buttons.R1)))
MessageBox.Show("Client 0 Pressed L1 + R1");
}
public class Buttons
{
public static UInt32
X = 262144,
Square = 805306368,
L1 = 526336,
L2 = 8388608,
L3 = 35651584,
R1 = 16777216,
R2 = 4194304,
R3 = 67108868,
Crouch = 131072,
Prone = 65536,
StartButton = 32768;
}
public Boolean ButtonPressed(UInt32 clientIndex, UInt32 Button)
{
if (BitConverter.ToUInt32(PS3.GetMemory(0xF15E60+ (clientIndex * 0x3580),4),0) == Button)
return true;
else return false;
}
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");
if (ButtonPressed(0,( Buttons.L1 + Buttons.R1)))
MessageBox.Show("Client 0 Pressed L1 + R1);
}
Copyright © 2024, NextGenUpdate.
All Rights Reserved.