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-25-2014, 05:16 PM #11
Originally posted by Sabotage View Post
Hey men, is there anyways to monitor the buttons without host? That would be great.


It's called Key_IsDown function. Search for it, then find out how it works lol.
05-25-2014, 05:34 PM #12
Sabotage
Gaming Squad
Originally posted by AlmightySo View Post
It's called Key_IsDown function. Search for it, then find out how it works lol.


He posted it already and now I know how to do it for other games, but thanks for the advice. It really helped.

The following user thanked Sabotage for this useful post:

GMTPS3
06-18-2014, 12:17 PM #13
Swaqq
Professional Thanker
Doesn't want to work for me Not Happy or Sad no errors just not working
What I did:
1.Enable Vezah RPC
2.Changed private static string to public static string
3.Went into my form1.cs and "if (Buttons.DPAD_IsDown(client) == "Down")" instead of L1/R1
4.Loaded the program(didnt work)
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

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo