Post: HitmanModz - All Button Values for Black Ops 2 - PS3Buttons Library/DLL
07-18-2014, 01:37 PM #1
(adsbygoogle = window.adsbygoogle || []).push({}); Skype: @druss016
Contributors welcome

I'am using this library in my Fair/Unfair aimbot tool: You must login or register to view this content.

If you need to look up the value for a button you can use this C# class library as a resource for button values in Black Ops 2. All button values for all layouts are supported (Default, Default Flipped, Tactical, Tactical Flipped, Lefty, Lefty Flipped, Nom4d, Nom4d Flipped, Charlie and Charlie Flipped).

When you change the button layout it changes the button values to match.

C# Library
Very simple and easy to use
Works for Local and Online Multiplayer

Button Support:


  • X
  • Square
  • Triangle
  • Circle
  • L1
  • L2
  • L3
  • R1
  • R2
  • R3
  • DPad Up
  • DPad Down
  • DPad Left
  • DPad Right
  • Start
  • Select
  • Crouch
  • Prone
  • Toggle ADS (For Nom4d & Charlie)


Basic Documentation:

ButtonLayout enum variables


  • Default
  • DefaultFlipped
  • Tactical
  • TacticalFlipped
  • Lefty
  • LeftyFlipped
  • Nom4d
  • Nom4dFlipped
  • Charlie
  • CharlieFlipped


Initializing the PS3Buttons class
    
// Function definition
public static void Init(ButtonLayout layout = ButtonLayout.Default, bool isLocal = false)

// Default button layout for multiplayer
PS3Buttons.Init();

// Default button layout for local
PS3Buttons.Init(ButtonLayout.Default, true);

// Tactical button layout for multiplayer
PS3Buttons.Init(ButtonLayout.Tactical);

// Tactical button layout for local
PS3Buttons.Init(ButtonLayout.Tactical, true);


Changing the button layout during execution

    
// Function definition
public static void ChangeLayout(ButtonLayout layout = ButtonLayout.Default)

// Change to Tactical Flipped
PS3Buttons.ChangeLayout(ButtonLayout.TacticalFlipped);

// Change to Lefty
PS3Buttons.ChangeLayout(ButtonLayout.Lefty);


Getting a button value/offset by using the variable name
When set for Multiplayer, these properties will contain the value of the button
When set for Local, these properties will contain the offset of the button

    
PS3Buttons.X;
PS3Buttons.Square;
PS3Buttons.Triangle;
PS3Buttons.Circle;
PS3Buttons.L1;
PS3Buttons.L2;
PS3Buttons.L3;
PS3Buttons.R1;
PS3Buttons.R2;
PS3Buttons.R3;
PS3Buttons.Up;
PS3Buttons.Down;
PS3Buttons.Left;
PS3Buttons.Right;
PS3Buttons.Start;
PS3Buttons.Select;
PS3Buttons.Crouch;
PS3Buttons.Prone;
PS3Buttons.ToggleADS;


Getting a button value/offset by using the string name
When set for Multiplayer, this function will get the value of the button
When set for Local, this function will get the offset of the button

    
// Function definition
public static uint Get(string button)

// Getting the value or offset
PS3Buttons.Get("X");
PS3Buttons.Get("Square");
PS3Buttons.Get("Triangle");
PS3Buttons.Get("Circle");
PS3Buttons.Get("L1");
PS3Buttons.Get("L2");
PS3Buttons.Get("L3");
PS3Buttons.Get("R1");
PS3Buttons.Get("R2");
PS3Buttons.Get("R3");
PS3Buttons.Get("Up");
PS3Buttons.Get("Down");
PS3Buttons.Get("Left");
PS3Buttons.Get("Right");
PS3Buttons.Get("Start");
PS3Buttons.Get("Select");
PS3Buttons.Get("Crouch");
PS3Buttons.Get("Prone");
PS3Buttons.Get("ToggleADS");


Using button offsets for Local button detection

    
// Detecting if "triangle" has been pressed
if(PS3.Extension.ReadInt32(G_Client(client, PS3Buttons.Triangle)) == 1)
return true;
else return false;

// Detecting if "x" + "square" has been pressed
if(PS3.Extension.ReadInt32(G_Client(client, PS3Buttons.X)) == 1
&& PS3.Extension.ReadInt32(G_Client(client, PS3Buttons.Square)) == 1)
return true;
else return false;


Download PS3Buttons.dll C# Library v1.0.0.0:

You must login or register to view this content.

Virus scan: You must login or register to view this content.
SHA256: db22bac9dfeace5bffa9f9633e92889e95ea8145ce04ae00c253800d6bc416b1
File name: PS3Buttons.dll
Detection ratio: 0 / 53
Analysis date: 2014-07-18 13:27:34 UTC
Last edited by MrHitman ; 07-18-2014 at 01:42 PM.

The following user thanked MrHitman for this useful post:

iRoyal // MoDz

Copyright © 2024, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo