void SetButtonKey(int button, int key)
The values used for the button variable are the same integers that are passed to the unpress() function. The values for the key variable are from the SCAN defines.
SetButtonKey(1, SCAN_Z); //Would set button 1, which defaulted to [enter] to the 'Z' key on the keyboard SetButtonKey(2, SCAN_O); //Would set button 2, which used to be [alt] to the 'O' key on the keyboard.
The internal button values (1-8) are defined here.
// Sets button 1 (which was enter) to Z on the keyboard SetButtonKey(1, SCAN_Z);
Talkback #2 written by Ness on 2004-08-30.
The values used for the button variable are the same integers that are passed to the unpress() function. The values for the key variable are from the SCAN defines.
i.e.
SetButtonKey(1, SCAN_Z);
Would set button 1, which use to be enter to Z
SetButtonKey(2, SCAN_O);
Would set button 2, which use to be alt to O
All of the button values are defined Here
Talkback #1 written by athocreft on 2004-08-27.
Would it be "Z" that corrosponds to button 1, or would enter work as well? This should be explained.
Doc Nav |
Your docs |