Post: All Clients Buttons Monitoring (C# / 1.13)
10-29-2013, 10:00 PM #1
seb5594
Proud Former Admin
(adsbygoogle = window.adsbygoogle || []).push({}); Hey NGU,

Quick Release for Today, someone asked me for a Buttons Monitoring for BO1 cause i released yesterday Hud Elements.
Add this somewhere to your Project


    
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) + 0x271Cool Man (aka Tustin) == 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);
}


If you have not Chocos GetMemory Function, here is it
    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;
}


How you can use it (Use a Timer!)
Syntax of this Function
            private void TestButtons()
{
if (ButtonPressed(0, Buttons.X))
MessageBox.Show("Client 0 Pressed X");
}


Credits:
seb5594 - Creating this Function
MegaMister - Fixed Buttons Values
Anera - G_Client Offset and Button Offset
iMCSx - PS3Lib for ReadUInt32 Function
(adsbygoogle = window.adsbygoogle || []).push({});

The following 9 users say thank you to seb5594 for this useful post:

AlexNGU, Authority Modz, EdiTzZ, lollo1000, John, SnaY, worrorfight, xPAQz, zZHackzZ
05-05-2014, 03:42 PM #20
makeabce
I defeated!
Originally posted by seb5594 View Post
Please check my first post MegaMister fixed the Button Values. It should be fixed Smile


FINALLY! Thank you, now i can bring my menu alive Happy

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo