Subversion Repositories HelenOS

Rev

Rev 3933 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3933 Rev 4482
Line 25... Line 25...
25
 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
25
 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26
 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26
 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27
 */
27
 */
28
 
28
 
29
/** @addtogroup libc
29
/** @addtogroup libc
30
 * @{
30
 * @{
31
 */
31
 */
32
/** @file
32
/** @file
33
 */
33
 */
34
 
34
 
35
#ifndef LIBC_KBD_KEYCODE_H_
35
#ifndef LIBC_IO_KEYCODE_H_
36
#define LIBC_KBD_KEYCODE_H_
36
#define LIBC_IO_KEYCODE_H_
37
 
37
 
38
/** Keycode definitions.
38
/** Keycode definitions.
39
 *
39
 *
40
 * A keycode identifies a key by its position on the keyboard, rather
40
 * A keycode identifies a key by its position on the keyboard, rather
41
 * than by its label. For human readability, key positions are noted
41
 * than by its label. For human readability, key positions are noted
Line 197... Line 197...
197
    KC_NPERIOD
197
    KC_NPERIOD
198
   
198
   
199
} keycode_t;
199
} keycode_t;
200
 
200
 
201
enum keymod {
201
enum keymod {
202
    KM_LSHIFT   = 0x001,
202
    KM_LSHIFT      = 0x001,
203
    KM_RSHIFT   = 0x002,
203
    KM_RSHIFT      = 0x002,
204
    KM_LCTRL    = 0x004,
204
    KM_LCTRL       = 0x004,
205
    KM_RCTRL    = 0x008,
205
    KM_RCTRL       = 0x008,
206
    KM_LALT     = 0x010,
206
    KM_LALT        = 0x010,
207
    KM_RALT     = 0x020,
207
    KM_RALT        = 0x020,
208
    KM_CAPS_LOCK    = 0x040,
208
    KM_CAPS_LOCK   = 0x040,
209
    KM_NUM_LOCK = 0x080,
209
    KM_NUM_LOCK    = 0x080,
210
    KM_SCROLL_LOCK  = 0x100,
210
    KM_SCROLL_LOCK = 0x100,
211
 
211
   
212
    KM_SHIFT    = KM_LSHIFT | KM_RSHIFT,
212
    KM_SHIFT       = KM_LSHIFT | KM_RSHIFT,
213
    KM_CTRL     = KM_LCTRL | KM_RCTRL,
213
    KM_CTRL        = KM_LCTRL | KM_RCTRL,
214
    KM_ALT      = KM_LALT | KM_RALT
214
    KM_ALT         = KM_LALT | KM_RALT
215
} keymod_t;
215
} keymod_t;
216
 
216
 
217
#endif
217
#endif
218
 
218
 
219
/** @}
219
/** @}
220
 */
220
 */