teclado.h File Reference

Go to the source code of this file.

Defines

Functions

Variables


Define Documentation

#define ALT   0x0100
 

Definition at line 7 of file teclado.h.

Referenced by getascii(), and Teclado().

#define CAPS_LOCK   0xD000
 

Definition at line 40 of file teclado.h.

#define CARACTER_LIMITE   0x0400
 

Definition at line 12 of file teclado.h.

#define CTRL   0x0200
 

Definition at line 8 of file teclado.h.

Referenced by getascii(), and Teclado().

#define CURSOR_DOWN   0
 

Definition at line 16 of file teclado.h.

#define CURSOR_LEFT   0
 

Definition at line 17 of file teclado.h.

#define CURSOR_RIGHT   0
 

Definition at line 18 of file teclado.h.

#define CURSOR_UP   0
 

Definition at line 15 of file teclado.h.

#define DELETE   0
 

Definition at line 23 of file teclado.h.

#define END   0
 

Definition at line 24 of file teclado.h.

#define ENTER   0
 

Definition at line 25 of file teclado.h.

#define F1   0x1000
 

Definition at line 27 of file teclado.h.

#define F10   (F1 + 9)
 

Definition at line 36 of file teclado.h.

#define F11   (F1 + 10)
 

Definition at line 37 of file teclado.h.

#define F12   (F1 + 11)
 

Definition at line 38 of file teclado.h.

#define F2   (F1 + 1)
 

Definition at line 28 of file teclado.h.

#define F3   (F1 + 2)
 

Definition at line 29 of file teclado.h.

#define F4   (F1 + 3)
 

Definition at line 30 of file teclado.h.

#define F5   (F1 + 4)
 

Definition at line 31 of file teclado.h.

#define F6   (F1 + 5)
 

Definition at line 32 of file teclado.h.

#define F7   (F1 + 6)
 

Definition at line 33 of file teclado.h.

#define F8   (F1 + 7)
 

Definition at line 34 of file teclado.h.

#define F9   (F1 + 8)
 

Definition at line 35 of file teclado.h.

#define HOME   0
 

Definition at line 14 of file teclado.h.

#define INSERT   0
 

Definition at line 22 of file teclado.h.

#define NUM_LOCK   0xE000
 

Definition at line 41 of file teclado.h.

#define PAGE_DOWN   0
 

Definition at line 21 of file teclado.h.

#define PAGE_UP   0
 

Definition at line 20 of file teclado.h.

#define SCR_LOCK   0xF000
 

Definition at line 42 of file teclado.h.

#define SHIFT   0x0300
 

Definition at line 9 of file teclado.h.

Referenced by getascii(), and Teclado().

#define TECLA_MODIFICADORA   0xff00
 

Definition at line 10 of file teclado.h.

Referenced by getascii().

#define TECLADO_PORT   0x60
 

Definition at line 5 of file teclado.h.

Referenced by Teclado().


Function Documentation

unsigned int _getascii unsigned char  code  )  [inline]
 

Devuleve el caracter ASCII de un determinado scan code, sin tener en cuenta teclas especiales o de funciones

Definition at line 107 of file teclado.c.

Referenced by Teclado().

unsigned int getascii unsigned char  code  ) 
 

Devuelve el ASCII, teniendo en cuenta el estado de las teclas de especiales. Por ej: Si alguien presiona CTRL + m, esta función retirara primero el CTRL del buffer, y activará el flag "ctrl" cuando retire el scan code correspondiente a "m", al ver que está activado "ctrl" devolverá un entero CTRL | M Este tipo de combinaciones deberán ser reconocidas por la TTY

Definition at line 116 of file teclado.c.


Variable Documentation

unsigned int keymap_std[]
 

Initial value:

 
{
    0, 0, '1', '2', '3', '4', '5', '6', '7', '8', '9', '0', 225, 39, '\b',
    0, 'q', 'w', 'e', 'r', 't', 'y', 'u', 'i', 'o', 'p', '´', '+', '\n',
    CTRL, 'a', 's', 'd', 'f', 'g', 'h', 'j', 'k', 'l', 148, '{', '}', SHIFT, '}',
    'z', 'x', 'c', 'v', 'b', 'n', 'm', ',', '.', '-', SHIFT,
    '*', ALT,  , CAPS_LOCK, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, NUM_LOCK, SCR_LOCK, HOME, CURSOR_UP, PAGE_UP, '-',
    CURSOR_LEFT, 0, CURSOR_RIGHT, '+', END, CURSOR_DOWN, PAGE_DOWN, INSERT, DELETE, ENTER, 0, '<', F11, F12
}

Definition at line 51 of file teclado.h.

unsigned int keymap_std_shift[]
 

Initial value:

 
{
   0, 0, '!', '"', '#', '$', '%', '&', '/', '(', ')', '=', 225, 39, '\b',
   0, 'Q', 'W', 'E', 'R', 'T', 'Y', 'U', 'I', 'O', 'P', '¨', '*', '\n',
   CTRL, 'A', 'S', 'D', 'F', 'G', 'H', 'J', 'K', 'L', 148, '[', '^', SHIFT, ']',
   'Z', 'X', 'C', 'V', 'B', 'N', 'M', ',', ':', '_', SHIFT,
   '*', ALT,  , CAPS_LOCK, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, NUM_LOCK, SCR_LOCK, HOME, CURSOR_UP, PAGE_UP, '-',
   CURSOR_LEFT, 0, CURSOR_RIGHT, '+', END, CURSOR_DOWN, PAGE_DOWN, INSERT, DELETE, ENTER, 0, '<', F11, F12
}

Definition at line 62 of file teclado.h.

Referenced by getascii().


Generated on Sun May 30 18:38:37 2004 for Routix OS by doxygen 1.3.6