Post: [C#/Script] 1.06 All Client Dpad Button Handling [Read Thread!]
12-29-2013, 08:12 AM #1
(adsbygoogle = window.adsbygoogle || []).push({}); Hey NGU,

Today I'm going [sort of] release a script that I wrote for all client button handling that includes Dpads. Before you groan saying SC58 Already p0sted theeeesez >:( Listen, he released the Dword for client_s and the offset for the buttons and client interval but not an actual script for people that don't understand how to use it. So I made one today. If you want to look at SC58's thread then here it You must login or register to view this content..

Anyways, when making this I quickly used the You must login or register to view this content.

The function

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

Example of how to use (In a timer or background worker)

    
private void Buttons_Tick(object sender, EventArgs e)
{
if (ButtonPressed(0, Buttonz.DpadUp) == true)
{
MessageBox.Show("client 0 Uppp and true nigga");
}
if (ButtonPressed(1, Buttonz.DpadRight) == true)
{
MessageBox.Show("client 1 dpad right");
}
}


Credits:

    
SC58 for the dword for client_s
Seb5594 for his Black ops 1 button handling. (It helped me, lol)
Bad Luck Kevin for helping me with an host only dpad monitoring method!


If you groan tell me why.
(adsbygoogle = window.adsbygoogle || []).push({});

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

Mango_Knife, Sticky, Swiss, Turk_Warrior

The following user groaned Black Panther for this awful post:

milky4444
12-29-2013, 07:04 PM #11
SC58
Former Staff
client_s offset change when online and offline but the dword is the same if u get what i mean

The following user thanked SC58 for this useful post:

12-29-2013, 08:11 PM #12
Originally posted by D34TH View Post
Mine works online Winky Winky

This one also should work online, I did test these online lmao
12-29-2013, 08:26 PM #13
This is comfirmed working, I have tested it with xYARDSALEx. However only in Private match, but whats the point in public modding, don't ruin the game for other people Winky Winky

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo