Post: Local Button Monitoring (C++ | C# | Vb.Net)
07-14-2014, 06:34 PM #1
xPAQz
Bounty hunter
(adsbygoogle = window.adsbygoogle || []).push({}); Yo guys,
today i release the Local Button Monitoring.
Big thanks to SC58 and Mango_Knife. SC released the Addresses. So im just going to release the Classes.
Anyways here it is:


C++

    
namespace ButtonMonitoring
{
int LocalButtons = 0xd19800;
enum Buttons
{
DpadUp = 0x1FF,
DpadDown = 0x20F,
DpadRight = 0x21F,
DpadLeft = -0xC47E5F,
R3 = 0x1CF,
Square = 0xEF,
Cross = 0xCF,
LeftCursorUp = 0x27F,
LeftCursorLeft = 0x29F,
LeftCursorRight = 0x2AF,
LeftCursorDown = 0x28F,
R2 = 0x1EF,
L2 = 0x1DF,
Select = 0x1AF,
Start = 0x19F
};
bool ButtonPressed(Buttons Button)
{
return (*(int*)(LocalButtons + Button) != 0);
}
}


You can use it like this:
    
if (ButtonMonitoring::ButtonPressed(ButtonMonitoring::R3))
{
console_write("R3 has been pressed");
}


C#
    private static UInt32 LocalButtons = 0xd19800;
public enum Buttons
{
DpadUp = 0x1FF,
DpadDown = 0x20F,
DpadRight = 0x21F,
DpadLeft = -0xC47E5F,
R3 = 0x1CF,
Square = 0xEF,
Cross = 0xCF,
LeftCursorUp = 0x27F,
LeftCursorLeft = 0x29F,
LeftCursorRight = 0x2AF,
LeftCursorDown = 0x28F,
R2 = 0x1EF,
L2 = 0x1DF,
Select = 0x1AF,
Start = 0x19F
}
public static Boolean ButtonPressed(Buttons Button)
{
return Convert.ToBoolean(PS3.Extension.ReadByte(LocalButtons + (UInt32)Button) == 1);
}


You can use it like this (Use a timer!)
    if (ButtonPressed(Buttons.Cross))
{
MessageBox.Show("Cross Have Pressed!","Success");
}


Vb.Net
    Private Shared LocalButtons As UInt32 = &HD19800
Public Enum Buttons
DpadUp = &H1FF
DpadDown = &H20F
DpadRight = &H21F
DpadLeft = -&HC47E5F
R3 = &H1CF
Square = &HEF
Cross = &HCF
LeftCursorUp = &H27F
LeftCursorLeft = &H29F
LeftCursorRight = &H2AF
LeftCursorDown = &H28F
R2 = &H1EF
L2 = &H1DF
Select = &H1AF
Start = &H19F
End Enum
Public Shared Function ButtonPressed(Button As Buttons) As Boolean
Return Convert.ToBoolean(PS3.Extension.ReadByte(LocalButtons + Button) = 1)
End Function


You can use it like this: (Use a timer!)
     If ButtonPressed(Buttons.Cross) Then
MessageBox.Show("Cross Have Pressed!", "Success")
End If
(adsbygoogle = window.adsbygoogle || []).push({});

The following 9 users say thank you to xPAQz for this useful post:

-JM-, GermanModdingPS, Joren, LaRip8, makeabce, Mango_Knife, Nana, NickBeHaxing, xDeluxeModz
07-14-2014, 06:36 PM #2
hm ok

The following user thanked FusionIsDaName for this useful post:

GermanModdingPS
07-14-2014, 08:45 PM #3
Mango_Knife
In my man cave
Originally posted by Fusion
hm ok


hmmmmmmmmmmmmmmmmmmmmmmmmmm ok.
07-15-2014, 08:29 AM #4
makeabce
I defeated!
Originally posted by xPAQz View Post
Yo guys,

today i release the DPAD Monitoring.
Big thanks to SC58. He released the Addresses. So im just going to release the C# and Vb Class ^^
Anyways here it is:

VB:
    Class DPAD
Public Shared Function DPADUP() As Boolean
Return Convert.ToBoolean(PS3.Extension.ReadByte(&HD199FF) = &H1)
End Function

Public Shared Function DPADDOWN() As Boolean
Return Convert.ToBoolean(PS3.Extension.ReadByte(&HD19A0F) = &H1)
End Function

Public Shared Function DPADRight() As Boolean
Return Convert.ToBoolean(PS3.Extension.ReadByte(&HD19A1F) = &H1)
End Function

Public Shared Function DPADLeft() As Boolean
Return Convert.ToBoolean(PS3.Extension.ReadByte(&HD19A1) = &H1)
End Function

Public Shared Function R3() As Boolean
Return Convert.ToBoolean(PS3.Extension.ReadByte(&HD199CF) = &H1)
End Function

Public Shared Function Square() As Boolean
Return Convert.ToBoolean(PS3.Extension.ReadByte(&HD198EF) = &H1)
End Function

Public Shared Function X() As Boolean
Return Convert.ToBoolean(PS3.Extension.ReadByte(&HD198CF) = &H1)
End Function
End Class


C#:
    class DPAD
{
public static bool DPADUP()
{
return Convert.ToBoolean(PS3.Extension.ReadByte(0xd199ff) == 0x1);
}

public static bool DPADDOWN()
{
return Convert.ToBoolean(PS3.Extension.ReadByte(0xd19a0f) == 0x1);
}

public static bool DPADRight()
{
return Convert.ToBoolean(PS3.Extension.ReadByte(0xd19a1f) == 0x1);
}

public static bool DPADLeft()
{
return Convert.ToBoolean(PS3.Extension.ReadByte(0xd19a1) == 0x1);
}

public static bool R3()
{
return Convert.ToBoolean(PS3.Extension.ReadByte(0xd199cf) == 0x1);
}

public static bool Square()
{
return Convert.ToBoolean(PS3.Extension.ReadByte(0xd198ef) == 0x1);
}

public static bool X()
{
return Convert.ToBoolean(PS3.Extension.ReadByte(0xd198cf) == 0x1);
}
}


You can use it like this: (Use a timer!)
VB:
    
If DPAD.DPADUP Then
MessageBox.Show("DPAD UP Pressed")
End If


C#:
    
if (DPAD.DPADUP)
{
MessageBox.Show("DPAD UP Pressed");
}


Nice,but this is only for local clients.
Btw, is this for multiplayer or zombies?
07-15-2014, 11:25 AM #5
Mango_Knife
In my man cave
Originally posted by xPAQz View Post
Yo guys,

today i release the DPAD Monitoring.
Big thanks to SC58. He released the Addresses. So im just going to release the C# and Vb Class ^^
Anyways here it is:

VB:
    Class DPAD
Public Shared Function DPADUP() As Boolean
Return Convert.ToBoolean(PS3.Extension.ReadByte(&HD199FF) = &H1)
End Function

Public Shared Function DPADDOWN() As Boolean
Return Convert.ToBoolean(PS3.Extension.ReadByte(&HD19A0F) = &H1)
End Function

Public Shared Function DPADRight() As Boolean
Return Convert.ToBoolean(PS3.Extension.ReadByte(&HD19A1F) = &H1)
End Function

Public Shared Function DPADLeft() As Boolean
Return Convert.ToBoolean(PS3.Extension.ReadByte(&HD19A1) = &H1)
End Function

Public Shared Function R3() As Boolean
Return Convert.ToBoolean(PS3.Extension.ReadByte(&HD199CF) = &H1)
End Function

Public Shared Function Square() As Boolean
Return Convert.ToBoolean(PS3.Extension.ReadByte(&HD198EF) = &H1)
End Function

Public Shared Function X() As Boolean
Return Convert.ToBoolean(PS3.Extension.ReadByte(&HD198CF) = &H1)
End Function
End Class


C#:
    class DPAD
{
public static bool DPADUP()
{
return Convert.ToBoolean(PS3.Extension.ReadByte(0xd199ff) == 0x1);
}

public static bool DPADDOWN()
{
return Convert.ToBoolean(PS3.Extension.ReadByte(0xd19a0f) == 0x1);
}

public static bool DPADRight()
{
return Convert.ToBoolean(PS3.Extension.ReadByte(0xd19a1f) == 0x1);
}

public static bool DPADLeft()
{
return Convert.ToBoolean(PS3.Extension.ReadByte(0xd19a1) == 0x1);
}

public static bool R3()
{
return Convert.ToBoolean(PS3.Extension.ReadByte(0xd199cf) == 0x1);
}

public static bool Square()
{
return Convert.ToBoolean(PS3.Extension.ReadByte(0xd198ef) == 0x1);
}

public static bool X()
{
return Convert.ToBoolean(PS3.Extension.ReadByte(0xd198cf) == 0x1);
}
}


You can use it like this: (Use a timer!)
VB:
    
If DPAD.DPADUP Then
MessageBox.Show("DPAD UP Pressed")
End If


C#:
    
if (DPAD.DPADUP)
{
MessageBox.Show("DPAD UP Pressed");
}


Nice work man :yes:
But your coding a little messy
This is a better way to coding it:
    
private static UInt32 LocalButtons = 0xd19800;
public enum Buttons
{
DpadUp = 0x1FF,
DpadDown = 0x20F,
DpadRight = 0x21F,
DpadLeft = -0xC47E5F,
R3 = 0x1CF,
Square = 0xEF,
Cross = 0xCF
}
public static Boolean ButtonPressed(Buttons Button)
{
return Convert.ToBoolean(PS3.Extension.ReadByte(LocalButtons + (UInt32)Button) == 1);
}


Then you doing like:
    
if (ButtonPressed(Buttons.Cross))
{
MessageBox.Show("Cross Have Pressed!","Success");
}


VB.NET:
            Private Shared LocalButtons As UInt32 = &HD19800
Public Enum Buttons
DpadUp = &H1FF
DpadDown = &H20F
DpadRight = &H21F
DpadLeft = -&HC47E5F
R3 = &H1CF
Square = &HEF
Cross = &HCF
End Enum
Public Shared Function ButtonPressed(Button As Buttons) As Boolean
Return Convert.ToBoolean(PS3.Extension.ReadByte(LocalButtons + Button) = 1)
End Function


How to call:
                If ButtonPressed(Buttons.Cross) Then
MessageBox.Show("Cross Have Pressed!", "Success")
End If
07-15-2014, 06:04 PM #6
xPAQz
Bounty hunter
Originally posted by makeabce View Post
Nice,but this is only for local clients.
Btw, is this for multiplayer or zombies?

No its for multiplayer also.
I tried it. I joined like 4 games and my fps menu always worked with that dpad monitoring ^^
07-27-2014, 01:19 PM #7
xPAQz
Bounty hunter
Updated!
+ Added C++ Class
+ made code cleaner
07-27-2014, 01:30 PM #8
Nana
Can’t trickshot me!
Nice :wub:

The following user thanked Nana for this useful post:

xPAQz
07-27-2014, 01:33 PM #9
xPAQz
Bounty hunter
Originally posted by Nana View Post
Nice :wub:

thx <3
07-27-2014, 02:07 PM #10
makeabce
I defeated!
Nice mate Smile Now, create menu!
If you need help,talk to me in skype.

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo