Archived

This topic is now archived and is closed to further replies.

Guest fsspn

KEY_GAUGE_KEYSTROKE ... use of ?

Recommended Posts

hello folks,i'm still working on the spn's VC. in the SDK i found the event-variable KEY_GAUGE_KEYSTROKE, but no further description of it's use.(i only use xml, not c++)i want to make a keyboard-input for values like nav frequencies, heading, altitude and others. can anybody help me? perhaps you have an example, how to use KEY_GAUGE_KEYSTROKE ?thanks

Share this post


Link to post
Share on other sites
Help AVSIM continue to serve you!
Please donate today!

65 (>K:GAUGE_KEYSTROKE)returns the letter 'A', so if inputting ICAO code in a gps (needs to be in focus) will input an 'A'Note from the SDK"Enables a keystroke to be sent to a gauge that is in focus. The keystrokes can only be in the range 0 to 9, A to Z, and the four keys: plus, minus, comma and period. This is typically used to allow some keyboard entry to a complex device such as a GPS to enter such things as ICAO codes using the keyboard, rather than turning dials."Also useful to know the following:- 48 0 on main keyboard 49 1 on main keyboard 50 2 on main keyboard 51 3 on main keyboard 52 4 on main keyboard 53 5 on main keyboard 54 6 on main keyboard 55 7 on main keyboard 56 8 on main keyboard 57 9 on main keyboard 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 ZI hope this answers your question,cheers,Nick

Share this post


Link to post
Share on other sites

UpdateThis actually works for more than just alphanumerics and those listed in the SDK. The SDK is wrong (not the first time either).I haven't tested all keys, but any I've tried so far works, like backspace and enter, for example.The following list was originally compiled by Rob BarendregtOriginal source from Pete Dowson 8 Backspace 12 NumPad 5 (NumLock OFF) 13 Enter 19 Pause 32 Space bar 33 Page Up 34 Page Down 35 End 36 Home 37 Left arrow 38 Up arrow 39 Right arrow 40 Down arrow 45 Insert 46 Delete 48 0 on main keyboard 49 1 on main keyboard 50 2 on main keyboard 51 3 on main keyboard 52 4 on main keyboard 53 5 on main keyboard 54 6 on main keyboard 55 7 on main keyboard 56 8 on main keyboard 57 9 on main keyboard 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 96 NumPad 0 (NumLock ON) 97 NumPad 1 (NumLock ON) 98 NumPad 2 (NumLock ON) 99 NumPad 3 (NumLock ON) 100 NumPad 4 (NumLock ON) 101 NumPad 5 (NumLock ON) 102 NumPad 6 (NumLock ON) 103 NumPad 7 (NumLock ON) 104 NumPad 8 (NumLock ON) 105 NumPad 9 (NumLock ON) 106 NumPad * 107 NumPad + 109 NumPad - 110 NumPad . 111 NumPad / 112 F1 113 F2 114 F3 115 F4 116 F5 117 F6 118 F7 119 F8 120 F9 121 F10 122 F11 123 F12 135 NumPad Enter 144 NumLock 145 ScrollLock 186 ; : Key* 187 = + Key* 188 , < Key* 189 - _ Key* 190 . > Key* 191 / ? Key* 192 # ~ Key* 219 [ { Key* 220 \ | Key* 221 ] } Key* 222 ' @ Key* 223 `

Share this post


Link to post
Share on other sites