Post: [1.09] All Client Dpad Monitoring
03-05-2014, 12:24 AM #1
(adsbygoogle = window.adsbygoogle || []).push({}); Since 1.09 came out today, I thought I would update my button monitoring for it.

It's really simple, just add this coding to your source.

Also, I DO NOT allow this script to be on any other website

Coding:

    
public class Buttonz
{
public static int
DpadUp = 13617,
DpadDown = 14129,
DpadLeft = 14641,
DpadRight = 12594,
Cross = 13618,
Square = 12593,
Circle = 13106,
R2 = 53,
R1 = 49,
L2 = 55,
L1 = 13105,
L3 = 57,
R3 = 14130;
}
public static bool ButtonPressed(int client, int Button)
{
if (BitConverter.ToInt16(PS3.Extension.GetBytes(0x38A81A52 + ((uint)client * 0x6FA00), 2), 0) == Button || BitConverter.ToInt16(PS3.Extension.GetBytes(0x38F91A52 + ((uint)client * 0x6FA00), 2), 0) == Button)
return true;
else return false;
}


This script will monitor all clients buttons both in online (Private Match, Public Match) and offline (Lan, Splitscreen).

If you do not have a definition of ReadMemory(uint, int); Please use PS3Lib by iMcsx, it's really helpful :p.

Anyways, have fun with this!

How to use in a timer/backgroundworker
    
if(ButtonPressed(0, Buttonz.DpadUp))
MessageBox.Show("Client 0 is pressing up");
else if(ButtonPressed(3, Buttonz.DpadDown))
MessageBox.Show("Client 3, is pressing dpad down");


If you have any questions ask me!


Update: For those who are having trouble with button monitoring, try this version using G_Client

    
public class Buttons
{
public static Int32
L1 = 526336,
R1 = 16777216,
L2 = 8388608,
R2 = 4194304,
L3 = 35651584,
R3 = 67108868,
Cross = 262144,
Crouch = 131072,
Square = 805306368,
Start = 32768;
}
public bool ButtonPressed(int client, Int32 Button)
{
if (BitConverter.ToInt32(Debug.GetBytes(0xF46E30 + ((uint)client * 0x3700), Cool Man (aka Tustin), 0) == Button)
return true;
else return false;
}


How to use: In a timer or backgroundworker

    
private void timer1_Tick(object sender, EventArgs e)
{
if (ButtonPressed(0, Buttons.L1 + Buttons.R1))
textBox1.Text = "C0 L1 R1";
else if (ButtonPressed(0, Buttons.L1 + Buttons.R1 + Buttons.L2 + Buttons.R2))
textBox1.Text = " C0 L1 R1 L2 R2";
else textBox1.Text = "None";
}


Credits:

    
SC58 - Original Dword for client_s on 1.06
Imcsx - PS3Lib
RatchetBooy - for helping me test earlier even though we couldn't find it at the time (I didn't have my ps3 at that time)
Me - Script
(adsbygoogle = window.adsbygoogle || []).push({});

The following 12 users say thank you to Black Panther for this useful post:

-SuperMan, Akaipwn, br0wniiez, FusionIsDaName, Jannik007, M-alShammary, Mango_Knife, Marco_Legend, Notorious, xProvXKiller, RatchetBooty, Raz0rMind
03-12-2014, 08:36 PM #11
Originally posted by Knife View Post
It dosent work man.


Yes it does... How are you using it lol
03-16-2014, 06:29 PM #12
iMoDz-Baptiste
Do a barrel roll!
Doesn't work for me (BLES01945) Sad Awesome
03-16-2014, 06:39 PM #13
Again, ported from xbox. Is this all I am going to see on this site? Can't any off you guys actually do research? Getting annoying now Not Happy or Sad
03-16-2014, 06:58 PM #14
SC58
Former Staff
Originally posted by B1TW153 View Post
Again, ported from xbox. Is this all I am going to see on this site? Can't any off you guys actually do research? Getting annoying now Not Happy or Sad


This isnt ported from 360 buddy :p, the rested maybe true to some ppl but please dont be coming on post or whatever saying it was a port

Everyone has ported as if it wasnt for the cod4 pdb or the quake source i dont think modding would be where its at today.

The following user thanked SC58 for this useful post:

03-16-2014, 07:08 PM #15
Originally posted by SC58 View Post
This isnt ported from 360 buddy :p, the rested maybe true to some ppl but please dont be coming on most whatever saying it was a port

Everyone has ported as if it wasnt for the cod4 pdb or the quake source i dont think modding would be where its at today.


But it was bro. You can even google it, this exact thing was released for xbox but on MW3, way before this post. But okay sure, if you say so...
03-16-2014, 07:10 PM #16
SC58
Former Staff
Originally posted by B1TW153 View Post
But it was bro. You can even google it, this exact thing was released for xbox but on MW3, way before this post. But okay sure, if you say so...


i posted this last year, i guess it bad as it was when someone told me button monitoring was in client_s so i got the cod4 pdb and found it simple as that :p

You must login or register to view this content.

make sure u read the line that says "i have had this for a few months" who needs 360 :p

The following user thanked SC58 for this useful post:

03-16-2014, 07:25 PM #17
Originally posted by SC58 View Post
i posted this last year, i guess it bad as it was when someone told me button monitoring was in client_s so i got the cod4 pdb and found it simple as that :p

You must login or register to view this content.

make sure u read the line that says "i have had this for a few months" who needs 360 :p


That made me lol, thats even more proof you ported it from xbox. You have no idea what it is do you? You are using the entry point to client_s, and 0x6FA00 is the structure size. It is all math. Like for an example, on xbox...0x158 in the gentity structure is a pointer to gclient_s, also acts as a playerState_s pointer. Please, do not try and call me out when you got no idea what in the fuck you are doing.

The following user thanked Bitwise for this useful post:

ErasedDev
03-16-2014, 07:31 PM #18
Originally posted by Baptiste View Post
Doesn't work for me (BLES01945) Sad Awesome


Region has nothing to do with it. It does work lmao...
03-16-2014, 07:35 PM #19
Originally posted by B1TW153 View Post
That made me lol, thats even more proof you ported it from xbox. You have no idea what it is do you? You are using the entry point to client_s, and 0x6FA00 is the structure size. It is all math. Like for an example, on xbox...0x158 in the gentity structure is a pointer to gclient_s, also acts as a playerState_s pointer. Please, do not try and call me out when you got no idea what in the fuck you are doing.


Who the hell are you lmao. This isn't a port from xbox... I got the pointer from sc58 in 1.06 (or 1.07 can't remember) and made a function for it, I found the offsets myself for the past 2 updates. So please gtfo Smile

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo