![]() |
|
IL-2 Sturmovik The famous combat flight simulator. |
|
Thread Tools | Display Modes |
#7
|
|||
|
|||
![]()
Freelansir, thank you for your kind words sir!
I am happy you like the utility. You are right, to assign a key to a control unit (switch, turning knob) on the control panel numbers (keycodes) are used. Some switches and turning knobs already have a key assigned, other not. To open and edit the AFCE.ini you can use any text editor. Here is the part of the AFCE.ini we need to assign keys: Code:
[HOTKEYS SWITCHES] MSTR/STAB= AIL=46 <- '46': keycode for 'Delete'-key, it is assigned to the AIL-switch RUD=35 ELEV=34 ALL=65 PDI= TellTaleLights= <- no key assigned to tt-lights on/off switch ControlTransfer= [HOTKEYS KNOBS] TurnKnobLeft=37 <- '37': keycode for 'arrow left'-key, assigned to turn knob left TurnKnobRight=39 CenterKnob=38 SelectTurnControl=8 SelectCenterAil=45 SelectCenterRud=36 SelectCenterElev=33 SelectSensitivityAil= SelectSensitivityRud= SelectSensitivityElev= SelectRatioAil= SelectRatioRud= SelectRatioElev= SelectTurnCompAil= SelectTurnCompRud= SelectTurnCompElev= Code:
********************************************************* AVAILABLE KEYS ********************************************************* keycode key 8 BACKSPACE 9 TAB 13 RETURN 32 SPACEBAR 33 PAGE UP 34 PAGE DOWN 35 END 36 HOME 37 ARROW LEFT 38 ARROW UP 39 ARROW RIGHT 40 ARROW DOWN 45 INSERT 46 DELETE 48 0 49 1 50 2 51 3 52 4 53 5 54 6 55 7 56 8 57 9 65 A 66 B 67 C 68 D 69 E 70 F 71 G 72 H 73 I 74 J 75 K 76 L 77 M 78 N 79 O 80 P 81 Q 82 R 83 S 84 T 85 U 86 V 87 W 88 X 89 Y 90 Z 106 NUM* 107 NUM+ 109 NUM- 111 NUM÷ 188 , 190 . http://www.cambiaresearch.com/articl...odes-key-codes If you wish to assign a key to a switch or a knob just enter the corresponding keycode (see list above) into the desired line behind the '='. If you, for example, wish to assign the key 'M' (keycode 77) to the master switch (MSTR) edit the AFCE.ini like this: Code:
[HOTKEYS SWITCHES] MSTR/STAB=77 AIL=46 RUD=35 ELEV=34 ALL=65 PDI= TellTaleLights= ControlTransfer= Save your changes to the AFCE.ini and on the next startup of the autopilot you can flip the MSTR-switch with the key 'M' on your keyboard. I hope this helps a bit. Sincerely, Daedalus |
Thread Tools | |
Display Modes | |
|
|