public static string Key_IsDown(uint client)
{
byte[] But = new byte[4];
PS3.GetMemory(0x01393fe0 + (0x3580 * client), ref But);
string mystring = null;
mystring = BitConverter.ToString(But);
string result = mystring.Replace("-", "");
string result1 = result.Replace(" ", "");
string key = result1;
string KeyPressed = "";
if (key == "00000000")
{
KeyPressed = "NOKEY";
}
else if (key == "00000400")
{
KeyPressed = "X";
}
else if (key == "00000030")
{
KeyPressed = "[]";
}
else if (key == "00000200")
{
KeyPressed = "Crouch";
}
else if (key == "00000100")
{
KeyPressed = "Prone";
}
else if (key == "04000004")
{
KeyPressed = "R3";
}
else if (key == "00002002")
{
KeyPressed = "L3";
}
else if (key == "00004000")
{
KeyPressed = "R2";
}
else if (key == "00008000")
{
KeyPressed = "L2";
}
else if (key == "00080800")
{
KeyPressed = "L1";
}
else if (key == "00000001")
{
KeyPressed = "R1";
}
else if (key == "04002006")
{
KeyPressed = "R3 + L3";
}
else if (key == "0000C200")
{
KeyPressed = "Prone + R2 + L2";
}
else if (key == "0000C000")
{
KeyPressed = "R2 + L2";
}
else if (key == "00800000")
{
KeyPressed = "Start";
}
else
{
KeyPressed = key;
}
return KeyPressed;
}
public static string Key_IsDown(uint client)
{
byte[] But = new byte[4];
PS3.GetMemory(0x01393fe0 + (0x3580 * client), ref But);
string mystring = null;
mystring = BitConverter.ToString(But);
string result = mystring.Replace("-", "");
string result1 = result.Replace(" ", "");
string key = result1;
string KeyPressed = "";
if (key == "00000000")
{
KeyPressed = "NOKEY";
}
else if (key == "00000400")
{
KeyPressed = "X";
}
else if (key == "00000030")
{
KeyPressed = "[]";
}
else if (key == "00000200")
{
KeyPressed = "Crouch";
}
else if (key == "00000100")
{
KeyPressed = "Prone";
}
else if (key == "04000004")
{
KeyPressed = "R3";
}
else if (key == "00002002")
{
KeyPressed = "L3";
}
else if (key == "00004000")
{
KeyPressed = "R2";
}
else if (key == "00008000")
{
KeyPressed = "L2";
}
else if (key == "00080800")
{
KeyPressed = "L1";
}
else if (key == "00000001")
{
KeyPressed = "R1";
}
else if (key == "04002006")
{
KeyPressed = "R3 + L3";
}
else if (key == "0000C200")
{
KeyPressed = "Prone + R2 + L2";
}
else if (key == "0000C000")
{
KeyPressed = "R2 + L2";
}
else if (key == "00800000")
{
KeyPressed = "Start";
}
else
{
KeyPressed = key;
}
return KeyPressed;
}
Copyright © 2025, NextGenUpdate.
All Rights Reserved.