• Hello Guest! Welcome to ConsoleCrunch, to help support our site check out the premium upgrades HERE! to get exclusive access to our hidden content.
  • Unable to load portions of the website...
    If you use an ad blocker addon, you should disable it because it interferes with several elements of the site and blocks more than just adverts.
  • Read Rules Before Posting Post Virus Scans with every program.

PS3 Local Button Monitoring (C++ | C# | Vb.Net)

Nostafaru

Moderating the Crunch Bunch.
Retired Staff
Community Elite
Community Veteran
Determined Poster
Active Member
Console ID Poster
This is the Local Button Monitoring for call of duyt black ops 1. Happy Coding!

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:
Code:
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!)
Code:
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!)
Code:
If ButtonPressed(Buttons.Cross) Then
MessageBox.Show("Cross Have Pressed!", "Success")
End If



Credits: SC58 For the addresses
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • @ QM|T_JinX:
    im in for that bro
  • @ QM|T_JinX:
    yea i saw the giveaways back then great job on that too
  • @ God:
    Thank you for the kind words, but I do it just for the people and community I love to help out anyway I can and give back to this amazing community!
  • @ God:
    What time is It for you bro? You live in the UK right
  • @ QM|T_JinX:
    22:26 no the netherlands
  • @ QM|T_JinX:
    yea i always found you a great staff member doing giveaways and stuff you guys made me want to be staff hahaha
  • @ QM|T_JinX:
    the fun you guys had as staff members joking around hahah
  • @ QM|T_JinX:
    did you speak to younis about maybe a plan or something to get this working again ?
  • @ God:
    I remember now it’s been a while you know lol but I remember you live in the Netherlands. You are a great Super Moderator bro as wel you are always active helping and trying to do what you can respect for you as well! I’m in the United States it’s 4:32pm here. What you going to do tonight?
  • @ QM|T_JinX:
    thanks bro appreciate that nothing mutch thinking about after the movie playing some red dead 2 almost have it on platinum haha
  • @ QM|T_JinX:
    so you thinking about become staff again or no great to have you back on here hto
  • @ QM|T_JinX:
    tho
  • @ God:
    That’s the truth I see I come on here often here lately, sometimes I don’t chat! But yes I really want to help out and do everything I can bring the site back like it should be bro! Maybe we could work something out, I think I have the resources and community to help
  • @ QM|T_JinX:
    yea i have seen you on here just like unbound and some others but they didnt stick haha yea would be great to see this site grow again like you said like it should be
  • @ God:
    We will see we gotta talk to the boss man Younis
  • @ QM|T_JinX:
    for sure haha well lets hope right
  • @ QM|T_JinX:
    i still think if there was a jailbreak for ps4 this site would have been back for sure
  • @ God:
    That would be awesome I’m sure it will happen before long, technology now a days is crazy! If we can work out a deal and plans I’ll be spreading the word and doing a lot to make it better more attractive and helpful fourms tips giveaways and all
  • @ God:
    I’ve been messing and working with trying to make great CSS for the names. Like Staff Premium news writer etc..
  • @ QM|T_JinX:
    ok so hows that going /
  • @ God:
    It’s going good. So we will see what happens and if the site can come back like it was or better
  • @ QM|T_JinX:
    nice yea lets hope
  • @ QM|T_JinX:
    im going to play some red dead it was great to have spoken to you bro nice to see you back on here
  • @ QM|T_JinX:
    hope you have a great night bro
  • @ God:
    It was good talking with you as well, you have a great night! We will talk later bro
      @ God: It was good talking with you as well, you have a great night! We will talk later bro
      Back
      Top