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-17-2014, 02:41 AM #29
RatchetBooty
Former Staff
Originally posted by B1TW153 View Post
Lmfao, you do know he is hated on se7ensins. He got a new asshole ripped because he claims to be so smart, and gets called out.


Ok seriously, I've seen you literally post 1000 comments on this thread talking about se7ensins and how the guy is hated. lool, no one really cares, you've proven your point once you don't have to go more in depth of why you hate the guy each comment. You can stop now.
03-17-2014, 02:43 AM #30
Originally posted by B1TW153 View Post
How would it not work? It's just checking if 2 buttons where pressed at the same time. It works fine on xbox. Also, I am not sure there even is a structure labeled g_client? I know there is gclient_s, but I guess it's just you mis-labeling things.


I'm sorry not everybody is an uptight little prissy like you. Sorry I called something wrong. You can take the dildo out of your ass now. Smile

The following user thanked Black Panther for this useful post:

SC58
03-17-2014, 10:25 AM #31
Originally posted by B1TW153 View Post
Is everyone in this excuse off a modding scene as idiotic and pathetic as you are? Yesterday I may have been an asshole, I agree. I was pissed off with something.


If you think it's pathetic then get out.. Plain and simple.
03-17-2014, 07:55 PM #32
Originally posted by B1TW153 View Post
Was english not your first language? I said "Is everyone in this scene as idiotic and pathetic as you are?", hence the IS. I was not implying anything.


I find it cute how you think you're such a badass. Go back to the xbox community.

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo