Jump to content
Sign in to follow this  
callihn

Keypress monitoring/keymapping

Recommended Posts

Can someone tell me where I can find a list of keys and what numbers are assigned to them, also can we require more than one key such as ctrl+ and is it done using a +?

Thanks

Share this post


Link to post
Share on other sites
Start here and look at the DikCodes and stuff. :)

Sorry I don't see that helping, for example I know that L is 38 apparently because it says case 38:, however those DIK codes would seem to indicate 26 and has other oddities like B8.

EDIT: This looks like it, though there are keys missing too like CTRL.

Still doesn't tell me how to use two of them, for example ctrl+L instead of just L.

Edited by callihn

Share this post


Link to post
Share on other sites
Figured it all out myself.

Nice that you got it....

but why don't you share your new knowledge with us?

So please post your solution ...

Share this post


Link to post
Share on other sites
Nice that you got it....

but why don't you share your new knowledge with us?

So please post your solution ...

 
_key  = _this select 1;
_shift  = _this select 2;
_ctrl = _this select 3;
_alt = _this select 4;
_handled = false;

_map = ["","Escape","1","2","3","4","5","6","7","8","9","0","-","=","Backspace","Tab","Q","W","E","R","T","Y","U","I","O","P","[","]","Enter","Left Ctrl","A","S","D","F","G","H","J","K","L",";","'","~","Left Shift","\","Z","X","C","V","B","N","M",",",".","/","Right Shift","* [NUM]","Left Alt","Space","Caps Lock","F1","F2","F3","F4","F5","F6","F7","F8","F9","F10","Num Lock","Scroll Lock","7 [NUM]","8 [NUM]","9 [NUM]","- [NUM]","4 [NUM]","5 [NUM]","6 [NUM]","+ [NUM]","1 [NUM]","2 [NUM]","3 [NUM]","0 [NUM]",". [NUM]","","","\","F11","F12","","","","","","","","","","","","F13","F14","F15","","","","","","","","","","Kana","","","ABNT_C1","","","","","","Convert","","No Convert","","Yen","ABNT_C2","","","","","","","","","","","","","","","= [NUM]","","","Previous Track","&",",","_","Kanji","Stop","Ax","Unlabeled","","Next Track","","","Enter [NUM]","Right Ctrl","","","Mute","Calculator","Play / Pause","","Media Stop","","","","","","","","","","Volume -","","Volume +","","Web Home",". [NUM]","","/ [NUM]","","System Request","Right Alt","","","","","","","","","","","","","Pause","","Home","UP","Page Up","","LEFT","","RIGHT","","End","DOWN","Page Down","Insert","Delete","","","","","","","","Left Windows","Right Windows","App Menu","System Power","System Sleep","","","","System Wake","","Web Search","Web Favorites","Web Refresh","Web Stop","Web Forward","Web Back","My Computer","Mail","Media Select","","","","","","","","","","","","","","","","","","","2x","2xEscape","2x1","2x2","2x3","2x4","2x5","2x6","2x7","2x8","2x9","2x0","2x-","2x=","2xBackspace","2xTab","2xQ","2xW","2xE","2xR","2xT","2xY","2xU","2xI","2xO","2xP","2x[","2x]","2xEnter","2xLeft Ctrl","2xA","2xS","2xD","2xF","2xG","2xH","2xJ","2xK","2xL","2x;","2x'","2x~","2xLeft Shift","2x\","2xZ","2xX","2xC","2xV","2xB","2xN","2xM","2x,","2x.","2x/","2xRight Shift","2x* [NUM]","2xLeft Alt","2xSpace","2xCaps Lock","2xF1","2xF2","2xF3","2xF4","2xF5","2xF6","2xF7","2xF8","2xF9","2xF10","2xNum Lock","2xScroll Lock","2x7 [NUM]","2x8 [NUM]","2x9 [NUM]","2x- [NUM]","2x4 [NUM]","2x5 [NUM]","2x6 [NUM]","2x+ [NUM]","2x1 [NUM]","2x2 [NUM]","2x3 [NUM]","2x0 [NUM]","2x. [NUM]","2x","2x","2xOEM 102","2xF11","2xF12","2x","2x","2x","2x","2x","2x","2x","2x","2x","2x","2x","2xF13","2xF14","2xF15","2x","2x","2x","2x","2x","2x","2x","2x","2x","2xKana","2x","2x","2xABNT_C1","2x","2x","2x","2x","2x","2xConvert","2x","2xNo Convert","2x","2xYen","2xABNT_C2","2x","2x","2x","2x","2x","2x","2x","2x","2x","2x","2x","2x","2x","2x","2x= [NUM]","2x","2x","2xPrevious Track","2x&","2x,,","2x_","2xKanji","2xStop","2xAx","2xUnlabeled","2x","2xNext Track","2x","2x","2xEnter [NUM]","2xRight Ctrl","2x","2x","2xMute","2xCalculator","2xPlay / Pause","2x","2xMedia Stop","2x","2x","2x","2x","2x","2x","2x","2x","2x","2xVolume -","2x","2xVolume +","2x","2xWeb Home","2x. [NUM]","2x","2x/ [NUM]","2x","2xSystem Request","2xRight Alt","2x","2x","2x","2x","2x","2x","2x","2x","2x","2x","2x","2x","2xPause","2x","2xHome","2xUP","2xPage Up","2x","2xLEFT","2x","2xRIGHT","2x","2xEnd","2xDOWN","2xPage Down","2xInsert","2xDelete","2x","2x","2x","2x","2x","2x","2x","2xLeft Windows","2xRight Windows","2xApp Menu","2xSystem Power","2xSystem Sleep","2x","2x","2x","2xSystem Wake","2x","2xWeb Search","2xWeb Favorites","2xWeb Refresh","2xWeb Stop","2xWeb Forward","2xWeb Back","2xMy Computer","2xMail","2xMedia Select","2x","2x","2x","2x","2x","2x","2x","2x","2x","2x","2x","2x","2x","2x","2x","2x","2x","2x"];

if(_key > count(_map))then{_key = 0;};
_str = _map select _key;

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×