Post: Non Host Button Monitoring in C++ or C#
09-07-2015, 08:43 PM #1
TehMerkMods
I’m too L33T
(adsbygoogle = window.adsbygoogle || []).push({}); Would be nice trying to create some offhost binds aha or maybe an offhost menu
(adsbygoogle = window.adsbygoogle || []).push({});
09-08-2015, 05:53 AM #2
SyGnUs
Give a F*** About Your Lifestyle
Originally posted by TehMerkMods View Post
Would be nice trying to create some offhost binds aha or maybe an offhost menu


I use the Key_IsDown function for my SPRXs on most CODs and it works fine, so you can use that if you want. Here is the code for it -

    
opd_s Key_IsDown_t = { 0x1185BC, TOC };
int(*Key_IsDown)(int localClientNum, int keynum) = (int(*)(int, int))&Key_IsDown_t;

enum Buttons
{
Null = 0,
X = 1,
O = 2,
square = 3,
triangle = 4,
L1 = 5,
R1 = 6,
start = 14,
select = 15,
L3 = 16,
R3 = 17,
L2 = 18,
R2 = 19,
UP = 20,
DOWN = 21,
LEFT = 22,
RIGHT = 23,
APAD_UP = 28,
APAD_DOWN = 29,
APAD_LEFT = 30,
APAD_RIGHT = 31
};

To call it just do something like this -

if (Key_IsDown(0, L1))
{
//Execute Code
}


Also you can just use RPC for C# and call the function that way.

The following user thanked SyGnUs for this useful post:

Maverick
09-08-2015, 06:01 AM #3
TehMerkMods
I’m too L33T
Originally posted by SyGnUs View Post
I use the Key_IsDown function for my SPRXs on most CODs and it works fine, so you can use that if you want. Here is the code for it -

    
opd_s Key_IsDown_t = { 0x1185BC, TOC };
int(*Key_IsDown)(int localClientNum, int keynum) = (int(*)(int, int))&Key_IsDown_t;

enum Buttons
{
Null = 0,
X = 1,
O = 2,
square = 3,
triangle = 4,
L1 = 5,
R1 = 6,
start = 14,
select = 15,
L3 = 16,
R3 = 17,
L2 = 18,
R2 = 19,
UP = 20,
DOWN = 21,
LEFT = 22,
RIGHT = 23,
APAD_UP = 28,
APAD_DOWN = 29,
APAD_LEFT = 30,
APAD_RIGHT = 31
};

To call it just do something like this -

if (Key_IsDown(0, L1))
{
//Execute Code
}


Also you can just use RPC for C# and call the function that way.


thanks man really helpful <3

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo