Post: [1.07] All Client Dpad Button Handling
01-29-2014, 07:42 PM #1
(adsbygoogle = window.adsbygoogle || []).push({}); I made this today so people can use it with their super kewl menus. It's pretty simple, just all client button handling.
I think you can monitor Thumbstick axis with this, but idk I haven't tried it yet. Anyways, have fun with your RDC edits and menus that look all the same Smile Also, I DO NOT allow this code to be posted on any other Website, I.E 'PortalCentric, Se7enSins, etc..' Also if you don't know by now, you have to use PS3Lib with this, or your own, but you will have to change it to fit with your own coding.


And as SC58 has said, this offset does change when going from offline to online, so I updated this with both versions.

Coding Online!

    
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.GetBytes(0x38A91A52 + ((uint)client * 0x6EA00), 2), 0) == Button)
return true;
else return false;
}



Coding Offline..

    

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 ButtonPressedOffline(int client, int Button)
{
if (BitConverter.ToInt16(PS3.GetBytes(0x38FA1A52 + ((uint)client * 0x6EA00), 2), 0) == Button)
return true;
else return false;
}



And if by now you still don't know how to use button handling...

Just an example to put in a timer or anything that runs in the background

    
if (ButtonPressed(0, Buttonz.DpadDown))
MessageBox.Show("Client o down");
else if (ButtonPressed(1, Buttonz.L1))
MessageBox.Show("Client 1 L1");
(adsbygoogle = window.adsbygoogle || []).push({});

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

Absolute Zero, RawDog2002, ilasthope, John, Notorious, RatchetBooty
01-29-2014, 08:07 PM #2
SC58
Former Staff
hope u kno client_s offset changes when online/offline so u needa let ppl kno wats wat should have set it up to work on both no matter wat...
01-29-2014, 08:31 PM #3
Originally posted by SC58 View Post
hope u kno client_s offset changes when online/offline so u needa let ppl kno wats wat should have set it up to work on both no matter wat...


Okay one second.

Edit: Updated for online and offline use Smile

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo