Post: C# How to use DPAD Monitoring
05-22-2014, 11:18 PM #1
GMTPS3
Do a barrel roll!
(adsbygoogle = window.adsbygoogle || []).push({}); Hello Guys i will show you a easy way to use DPAD Monitoring Online and Private Match like in Projekt Memorys Smile

    
private static bool Dvar_GetBool(string DVAR)
{//0x291060 - Dvar_GetBool(const char *dvarName)
bool State;
uint Value = (uint)RPC.Call(0x291060, DVAR);
if (Value == 1)
State = true;
else
State = false;
return State;
}

private static string DPAD_IsDown(uint Client)
{
uint Offset = 0;
if (!Dvar_GetBool("xblive_privatematch"))
Offset = 0x38EF1022;
else
Offset = 0x395f1022;
string KeyPressed;
string Key = ReadString(Offset + (Client * 0x68B80));
if (Key == "16")
{
KeyPressed = null;
}
else if (Key == "15")
{
KeyPressed = "Up";
}
else if (Key == "17")
{
KeyPressed = "Down";
}
else if (Key == "19")
{
KeyPressed = "Left";
}
else if (Key == "21")
{
KeyPressed = "Right";
}
else if (Key == "25")
{
KeyPressed = "X";
}
else
{
KeyPressed = Key;
}
return KeyPressed;
}


FPS RPC by Vezah: You must login or register to view this content.

Thanks to SC58 for Client_s and the Dvar_GetBool Offset Smile
(adsbygoogle = window.adsbygoogle || []).push({});

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

Sabotage, En3RGyMoDz, FusionIsDaName, Mango_Knife, moxl, Fatality

The following user groaned GMTPS3 for this awful post:

05-22-2014, 11:43 PM #2
Sabotage
Gaming Squad
Hey men, is there anyways to monitor the buttons without host? That would be great.
05-23-2014, 08:54 AM #3
GMTPS3
Do a barrel roll!
Yes i release it wait Smile
05-23-2014, 08:27 PM #4
VezahMoDz
Do a barrel roll!
Originally posted by GMTPS3 View Post
Hello Guys i will show you a easy way to use DPAD Monitoring Online and Private Match like in Projekt Memorys Smile

    
private static bool Dvar_GetBool(string DVAR)
{//0x291060 - Dvar_GetBool(const char *dvarName)
bool State;
uint Value = (uint)RPC.Call(0x291060, DVAR);
if (Value == 1)
State = true;
else
State = false;
return State;
}

private static string DPAD_IsDown(uint Client)
{
uint Offset = 0;
if (!Dvar_GetBool("xblive_privatematch"))
Offset = 0x38EF1022;
else
Offset = 0x395f1022;
string KeyPressed;
string Key = ReadString(Offset + (Client * 0x68B80));
if (Key == "16")
{
KeyPressed = null;
}
else if (Key == "15")
{
KeyPressed = "Up";
}
else if (Key == "17")
{
KeyPressed = "Down";
}
else if (Key == "19")
{
KeyPressed = "Left";
}
else if (Key == "21")
{
KeyPressed = "Right";
}
else if (Key == "25")
{
KeyPressed = "X";
}
else
{
KeyPressed = Key;
}
return KeyPressed;
}


FPS RPC by Vezah: You must login or register to view this content.

Thanks to SC58 for Client_s and the Dvar_GetBool Offset Smile


Already released here : You must login or register to view this content.
05-23-2014, 10:06 PM #5
GMTPS3
Do a barrel roll!
Hättest du dir die Funktion richtig angesehen du döddel hättest du gemerkt das meine Function automatisch das Offset wählt bei dem Post hat man nur eine Offline und eine Online Funktion ^^
05-24-2014, 12:12 PM #6
VezahMoDz
Do a barrel roll!
Originally posted by GMTPS3 View Post
Hättest du dir die Funktion richtig angesehen du döddel hättest du gemerkt das meine Function automatisch das Offset wählt bei dem Post hat man nur eine Offline und eine Online Funktion ^^

Hättest du dir denn ganzen Thread angesehen hättest du weiter unten gesehen wie es für beides geht Winky Winky

The following user thanked VezahMoDz for this useful post:

Fatality
05-24-2014, 04:11 PM #7
GMTPS3
Do a barrel roll!
Hab mir den Ganzen Thread angesehen wenn hätten sie es als neuen Thread machen sollen und nicht als Kommentar Winky Winky
05-24-2014, 04:26 PM #8
Originally posted by GMTPS3 View Post
Hello Guys i will show you a easy way to use DPAD Monitoring Online and Private Match like in Projekt Memorys Smile

    
private static bool Dvar_GetBool(string DVAR)
{//0x291060 - Dvar_GetBool(const char *dvarName)
bool State;
uint Value = (uint)RPC.Call(0x291060, DVAR);
if (Value == 1)
State = true;
else
State = false;
return State;
}

private static string DPAD_IsDown(uint Client)
{
uint Offset = 0;
if (!Dvar_GetBool("xblive_privatematch"))
Offset = 0x38EF1022;
else
Offset = 0x395f1022;
string KeyPressed;
string Key = ReadString(Offset + (Client * 0x68B80));
if (Key == "16")
{
KeyPressed = null;
}
else if (Key == "15")
{
KeyPressed = "Up";
}
else if (Key == "17")
{
KeyPressed = "Down";
}
else if (Key == "19")
{
KeyPressed = "Left";
}
else if (Key == "21")
{
KeyPressed = "Right";
}
else if (Key == "25")
{
KeyPressed = "X";
}
else
{
KeyPressed = Key;
}
return KeyPressed;
}


FPS RPC by Vezah: You must login or register to view this content.

Thanks to SC58 for Client_s and the Dvar_GetBool Offset Smile


Does this work offline and online?
05-25-2014, 02:58 PM #9
Mango_Knife
In my man cave
Originally posted by GMTPS3 View Post
Hello Guys i will show you a easy way to use DPAD Monitoring Online and Private Match like in Projekt Memorys Smile

    
private static bool Dvar_GetBool(string DVAR)
{//0x291060 - Dvar_GetBool(const char *dvarName)
bool State;
uint Value = (uint)RPC.Call(0x291060, DVAR);
if (Value == 1)
State = true;
else
State = false;
return State;
}

private static string DPAD_IsDown(uint Client)
{
uint Offset = 0;
if (!Dvar_GetBool("xblive_privatematch"))
Offset = 0x38EF1022;
else
Offset = 0x395f1022;
string KeyPressed;
string Key = ReadString(Offset + (Client * 0x68B80));
if (Key == "16")
{
KeyPressed = null;
}
else if (Key == "15")
{
KeyPressed = "Up";
}
else if (Key == "17")
{
KeyPressed = "Down";
}
else if (Key == "19")
{
KeyPressed = "Left";
}
else if (Key == "21")
{
KeyPressed = "Right";
}
else if (Key == "25")
{
KeyPressed = "X";
}
else
{
KeyPressed = Key;
}
return KeyPressed;
}


FPS RPC by Vezah: You must login or register to view this content.

Thanks to SC58 for Client_s and the Dvar_GetBool Offset Smile


Like it was 5 days ago when we were on team viewer :p
05-25-2014, 05:02 PM #10
Okay, this has been posted before... plus your code is... well, it's ugly lol.

    
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 bool ButtonPressed(int client, int Button)
{
if (Debug.ReadInt16(0x38EF1022 + ((uint)client * 0x68B80) == Button || Debug.ReadInt16(0x395f1022 + ((uint)client * 0x68B80) == Button)
return true;
else return false;
}


Idk why you made your button_down code so long and gross. I know mine isn't the best but still

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo