void HookButton(int button, string function)
| Numerical Value | Button Hooked |
| 0 | All buttons (no effect) |
| 1 | b1 |
| 2 | b2 |
| 3 | b3 |
| 4 | b4 |
| 5 | up (no effect) |
| 6 | down (no effect) |
| 7 | left (no effect) |
| 8 | right (no effect) |
// Put this in system.vc and it will actually compile and run...
void autoexec()
{
// Hooks the up key to the function
HookButton(1, "ButtonDown_Enter");
while (!b3) { UpdateControls(); }
exit("And you said you would change...");
}
void ButtonDown_Enter() // If up arrow is pressed
{
// Display a little message box
MessageBox("One enter button pressed");
}There are no talkbacks on this documentation page yet. Post the first?
Doc Nav |
![]() |
Your docs |
![]() |