You must be logged in to do that.

SetButtonKey

SetButtonKey
void SetButtonKey(int button, int key)

Documentation

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.

Example Usage

// Sets button 1 (which was enter) to Z on the keyboard
SetButtonKey(1, SCAN_Z);
Talkback

Post a new comment?

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.

Post a new comment?

Ben McGraw's lovingly crafted this website from scratch for years.
It's a lot prettier this go around because of Jon Wofford.
Verge-rpg.com is a member of the lunarnet irc network, and would like to take this opportunity to remind you that regardless how babies taste, it is wrong to eat them.