Support File Key codes table

AnonTet

Pinball Master
Site Supporters
Joined
Jun 21, 2020
Messages
1,997
Solutions
1
Reaction score
1,151
Points
125
Favorite Pinball Machine
Indiana Jones
Key codes table for Future Pinball:
Rich (BB code):
Key Code     Key Code     Key Code     Key Code     Key Code
A   30       B   48       C   46       D   32       E   18
F   33       G   34       H   35       I   23       J   36
K   37       L   38       M   50       N   49       O   24
P   25       Q   16       R   19       S   31       T   20
U   22       V   47       W   17       X   45       Y   21
Z   44

Key Code     Key Code     Key Code     Key Code     Key Code
1   2        2   3        3   4        4   5        5   6
6   7        7   8        8   9        9   10       0   11

Key Code     Key Code     Key Code     Key Code     Key Code
F1  59       F2  60       F3  61       F4  62       F5  63
F6  64       F7  65       F8  66       F9  67       F10 68
F11 87       F12 88

Key   Code     Key  Code     Key   Code   Key  Code    Key   Code
SPACE 57       LEFT 42       RIGHT 54     LEFT 208     RIGHT 157

Keypad Keys
Key Code     Key Code     Key Code     Key Code     Key      Code
1   79       2   80       3   81       4   75       5        76
6   77       7   71       8   72       9   73       0        82
/   181      *   55       -   74       7   6        NUMLOCK  69
+   78       .   83                                 ENTER    156

Special Keys
Key Code    Key Code    Key Code    Key Code    Key Code
`   41      -   12      =   13      [   26      ]   27
\   45      ;   39      '   40      ,   51      .   52
/   53

Key          Code
SHIFT        SHIFT
CONTROL      CONTROL
ENTER        28
LEFT ALT     56
RIGHT ALT    184
CAPS LOCK    58
BACKSPACE    14
LEFT WINDOW  219
RIGHT WINDOW 220
RIGHT MENU   221
 
Last edited:
Anon: It's great to have these but where would they be used. Just curious.
 
Anon: It's great to have these but where would they be used. Just curious.

In Visual Pinball, they are usually used in the KeyDown and KeyUp subs.
I am guessing Future Pinball is similar?
 
In the Future Pinball manual:

1707575228923.png
 
Anon: It's great to have these but where would they be used. Just curious.

About the only time I use it is when I want the end user to be able to press a key to perform some function. You add it to "Sub FuturePinball_KeyPressed(ByVal KeyCode)".

An example is:

If keycode = 32 and FizXTweakerOn = True then
ResetFizXTweakerToDefault(): PlaySound "road-target-1" ' Press D
FizXDmd.Text = "[f1][x8][y1]All FizX Settings Have" & "[y9]Been Reset to Default."
TextDelayTimer.Set True, 1000
End if

In this case the end user presses the D key to run a subroutine, display something on the DMD and run a timer.
 
As I'm not a test roller fan, I use it for test purpose
If KeyCode = XX Then Target_Hit or something like that
 
And if you want to know a value for a key code, a good old VP table (at least VP6, sorry, not for VPX and later)
 

Attachments

  • Keycodes.vpt
    42 KB · Views: 0
Last edited:
Thank-you Gentlemen, solved my curiosity.
 
Forum activity
Help Users
You can interact with the ChatGPT Bot in any Chat Room and there is a dedicated room. The command is /ai followed by a space and then your ? or inquiry.
ie: /ai What is a EM Pinball Machine?
  • No one is chatting at the moment.
      Chat Bot Mibs Chat Bot Mibs: AnushDCosta is our newest member. Welcome!
      Back
      Top