Skip to content

Commit

Permalink
Add PRINTSCREEN key.
Browse files Browse the repository at this point in the history
  • Loading branch information
skullernet committed Nov 28, 2012
1 parent 8fcfeba commit 2c327f4
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions inc/client/keys.h
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#define K_LWINKEY 156
#define K_RWINKEY 157
#define K_MENU 158
#define K_PRINTSCREEN 159

#define K_KP_HOME 160
#define K_KP_UPARROW 161
Expand Down
1 change: 1 addition & 0 deletions src/client/keys.c
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ static const keyname_t keynames[] = {
K(LWINKEY),
K(RWINKEY),
K(MENU),
K(PRINTSCREEN),

K(KP_HOME),
K(KP_UPARROW),
Expand Down
3 changes: 2 additions & 1 deletion src/unix/sdl/video.c
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ static const byte scantokey[128] = {
K_KP_UPARROW, K_KP_PGUP, K_KP_MINUS, K_KP_LEFTARROW, K_KP_5, K_KP_RIGHTARROW,K_KP_PLUS, K_KP_END, // 4
K_KP_DOWNARROW, K_KP_PGDN, K_KP_INS, K_KP_DEL, 0, 0, 0, K_F11,
K_F12, 0, 0, 0, 0, 0, 0, 0, // 5
K_KP_ENTER, K_RCTRL, K_KP_SLASH, 0, K_RALT, 0, K_HOME, K_UPARROW,
K_KP_ENTER, K_RCTRL, K_KP_SLASH, K_PRINTSCREEN, K_RALT, 0, K_HOME, K_UPARROW,
K_PGUP, K_LEFTARROW,K_RIGHTARROW, K_END, K_DOWNARROW,K_PGDN, K_INS, K_DEL, // 6
0, 0, 0, 0, 0, 0, 0, K_PAUSE,
0, 0, 0, 0, 0, K_LWINKEY, K_RWINKEY, K_MENU // 7
Expand Down Expand Up @@ -329,6 +329,7 @@ static void key_event(SDL_keysym *keysym, qboolean down)
K(LSUPER, LWINKEY)
K(RSUPER, RWINKEY)
K(MENU, MENU)
K(PRINT, PRINTSCREEN)

KK(RSHIFT, SHIFT, RSHIFT)
KK(LSHIFT, SHIFT, LSHIFT)
Expand Down
2 changes: 1 addition & 1 deletion src/windows/client.c
Original file line number Diff line number Diff line change
Expand Up @@ -634,7 +634,7 @@ static const byte scantokey[2][96] = {
0, 0, 0, 0, K_KP_ENTER, K_RCTRL, 0, 0, // 1
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, // 2
0, 0, 0, 0, 0, K_KP_SLASH, 0, 0,
0, 0, 0, 0, 0, K_KP_SLASH, 0, K_PRINTSCREEN,
K_RALT, 0, 0, 0, 0, 0, 0, 0, // 3
0, 0, 0, 0, 0, K_NUMLOCK, 0, K_HOME,
K_UPARROW, K_PGUP, 0, K_LEFTARROW, 0, K_RIGHTARROW, 0, K_END, // 4
Expand Down

0 comments on commit 2c327f4

Please sign in to comment.