1 /* -*- c -*- ------------------------------------------------------------- *
3 * Copyright 2004-2005 Murali Krishnan Ganapathy - All Rights Reserved
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation, Inc., 53 Temple Place Ste 330,
8 * Boston MA 02111-1307, USA; either version 2 of the License, or
9 * (at your option) any later version; incorporated herein by reference.
11 * ----------------------------------------------------------------------- */
13 #ifndef __SCANCODES_H__
14 #define __SCANCODES_H__
16 // Scancodes of some keys
31 #define SPACEKEY 57 // Scan code for SPACE
75 /* Bits representing ShiftFlags, See Int16/Function 2 or Mem[0x417] to get this info */
77 #define INSERT_ON (1<<7)
78 #define CAPSLOCK_ON (1<<6)
79 #define NUMLOCK_ON (1<<5)
80 #define SCRLLOCK_ON (1<<4)
81 #define ALT_PRESSED (1<<3)
82 #define CTRL_PRESSED (1<<2)
83 // actually 1<<1 is Left Shift, 1<<0 is right shift
84 #define SHIFT_PRESSED (1<<1 | 1 <<0)