Post: DPAD Monitoring [C#] [1.18]
04-28-2014, 06:18 PM #1
Shark
Retired.
(adsbygoogle = window.adsbygoogle || []).push({}); Hey, Today I decided to release DPAD Monitoring for BO2, I found this a few days ago and thought I would share it with the community :y:, before you use this you should know one thing, this is not like ghost, mw3, mw2 where you can hold the button, this will only respond to press's of the button like if you press DPAD up it will say that you have pressed it then go back to 0 (means you have not pressed it), so basically you cant make a function that requires holding the dpad, only pressing Smile, still its great for menus, and Enstone uses it in his menu (Revolution V1) that's why you cant hold the DPAD to scroll Needa

Note: you will probably need PS3Lib, unless you have your own Lib...



Code

    
public static uint G_Client(int clientIndex)
{
return (0x1780F28 + ((uint)(clientIndex * 0x580Cool Man (aka Tustin)));
}

public static UInt32
DPADUp = 0x34,
DPADDown = 0x38,
DPADLeft = 0x3C,
DPADRight = 0x40;

public static bool DetectButton(int clientIndex, uint Button)
{
Int32 ButtonIndex = PS3.Extensions.ReadInt32(0x94641C + Button);
Int32 B1 = PS3.Extensions.ReadInt32(G_Client(clientIndex) + 0x56BCool Man (aka Tustin);
Int32 B2 = PS3.Extensions.ReadInt32(G_Client(clientIndex) + 0x56A0);
if ((B1 == ButtonIndex) || (B2 == ButtonIndex))
return true;
return false;
}


How To Use It

    
DetectButton(clientIndex, Button);


Example (Runs In A Loop)

    
while (true)
if (DetectButton(0, DPADUp))
MessageBox.Show("Client 0 Pressed DPAD UP!");
(adsbygoogle = window.adsbygoogle || []).push({});

The following 20 users say thank you to Shark for this useful post:

..jigsaw, Kappa, Eddie Mac, B777x, FusionIsDaName, ImAzazel, ImPiffHD, iNDMx, Jannik007, Karisma, Luphox, MaNamesTyler, Notorious, OLDSCHOOLMODZHD, smashedya, SnaY, Taylor, Swiss, Fatality
04-28-2014, 06:26 PM #2
Nice I found this a couple weeks ago :p
04-28-2014, 07:00 PM #3
Luphox
Bounty hunter
S1ck0z0r
04-29-2014, 12:28 AM #4
Kurt
Banned
Originally posted by AlmightySo View Post
Nice I found this a couple weeks ago :p

no you didn't

The following user thanked Kurt for this useful post:

XxBlud23xX
04-29-2014, 12:34 AM #5
Originally posted by DexModderFTW View Post
no you didn't


Yes I did, I find my stuff, unlike leechers, like you.

The following 7 users say thank you to Black Panther for this useful post:

Eddie Mac, FusionIsDaName, JLM, Shark, smashedya, Sticky, XxBlud23xX
04-29-2014, 08:34 AM #6
lolzz
04-29-2014, 03:56 PM #7
Eddie Mac
At least I can fight
Originally posted by Shark View Post
Hey, Today I decided to release DPAD Monitoring for BO2, I found this a few days ago and thought I would share it with the community :y:, before you use this you should know one thing, this is not like ghost, mw3, mw2 where you can hold the button, this will only respond to press's of the button like if you press DPAD up it will say that you have pressed it then go back to 0 (means you have not pressed it), so basically you cant make a function that requires holding the dpad, only pressing Smile, still its great for menus, and Enstone uses it in his menu (Revolution V1) that's why you cant hold the DPAD to scroll Needa

Note: you will probably need PS3Lib, unless you have your own Lib...



Code

    
public static uint G_Client(int clientIndex)
{
return (0x177E928 + ((uint)(clientIndex * 0x580Cool Man (aka Tustin)));
}

public static UInt32
DPADUp = 0x34,
DPADDown = 0x38,
DPADLeft = 0x3C,
DPADRight = 0x40;

public static bool DetectButton(int clientIndex, uint Button)
{
Int32 ButtonIndex = PS3.Extensions.ReadInt32(0x94640C + Button);
Int32 B1 = PS3.Extensions.ReadInt32(G_Client(clientIndex) + 0x56BCool Man (aka Tustin);
Int32 B2 = PS3.Extensions.ReadInt32(G_Client(clientIndex) + 0x56A0);
if ((B1 == ButtonIndex) || (B2 == ButtonIndex))
return true;
return false;
}


How To Use It

    
DetectButton(clientIndex, Button);


Example (Runs In A Loop)

    
while (true)
if (DetectButton(0, DPADUp))
MessageBox.Show("Client 0 Pressed DPAD UP!");


Nice release...
05-03-2014, 01:22 PM #8
Shark
Retired.
updated to 1.17n :Fa:

The following 2 users say thank you to Shark for this useful post:

ALI ALHILFI, Notorious
05-06-2014, 04:43 PM #9
Originally posted by Shark View Post
updated to 1.17n :Fa:


Why i have this You must login or register to view this content. :(
05-06-2014, 10:35 PM #10
Shark
Retired.
Originally posted by darkchopper View Post
Why i have this You must login or register to view this content. :(


try adding ps3lib to your project...

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo