|
このページは大阪弁化フィルタによって翻訳生成されたんですわ。 |
Relacionado con: install_keyboard, keypressed, n?ero negativo si hubo alg? problema (ej: no hay driver de teclado instalado).extern volatile char key[KEY_MAX];Relacionado con: keyboard_needs_poll, install_keyboard, key, key_shifts.int keyboard_needs_poll();
install_keyboard, key.
Relacionado con: install_keyboard, poll_keyboard, key_shifts.extern volatile int key_shifts;
KB_SHIFT_FLAG
KB_CTRL_FLAG
KB_ALT_FLAG
KB_LWIN_FLAG
KB_RWIN_FLAG
KB_MENU_FLAG
KB_SCROLOCK_FLAG
KB_NUMLOCK_FLAG
KB_CAPSLOCK_FLAG
KB_INALTSEQ_FLAG
KB_ACCENT1_FLAG
KB_ACCENT2_FLAG
KB_ACCENT3_FLAG
KB_ACCENT4_FLAG
Relacionado con: install_keyboard, poll_keyboard, key.int keypressed();
Relacionado con: install_keyboard, readkey, clear_keybuf, simulate_keypress.int readkey();
if ((readkey() & 0xff) == 'd') // por c?igo ASCII
printf("Has pulsado 'd'\n");
if ((readkey() >> 8) == KEY_SPACE) // por c?igo scancode
printf("Has pulsado Espacio\n");
if ((readkey() & 0xff) == 3) // ctrl+letter
printf("Has pulsado Control+C\n");
if (readkey() == (KEY_X << 8)) // alt+letter
printf("Has pulsado Alt+X\n");
Esta funci? no puede devolver car當teres mayores que 255. Si necesita
leer entradas Unicode use ureadkey() en vez de readkey()
Relacionado con: install_keyboard, ureadkey, keypressed, clear_keybuf, simulate_keypress.int ureadkey(int *scancode);
Relacionado con: install_keyboard, simulate_ukeypress, keypressed, readkey.void simulate_ukeypress(int key, int scancode);
Relacionado con: install_keyboard, readkey, ureadkey, keyboard_ucallback, keyboard_lowlevel_callback.extern int (*keyboard_ucallback)(int key, int *scancode);
Relacionado con: install_keyboard, readkey, ureadkey, keyboard_callback, keyboard_lowlevel_callback.extern void (*keyboard_lowlevel_callback)(int scancode);
Relacionado con: install_keyboard, keyboard_callback, keyboard_ucallback.void set_leds(int leds);
Relacionado con: install_keyboard,Relacionado con: install_keyboard, readkey, ureadkey.void clear_keybuf();
Limpia el b?fer de teclado.Relacionado con: install_keyboard, keypressed, readkey, ureadkey.extern int three_finger_flag;
multitarea capturar疣 esta combinaci? antes de que llegue al controlador de Allegro, en cuyo caso puede usar la combinaci? alternativa ctrl+alt+fin. Si quiere desactivar este comportamiento en su programa ajuste esta variable a FALSE.Relacionado con: install_keyboard.extern int key_led_flag;
Por defecto las teclas BloqMay?, BloqNum y BloqDesp activan los LEDS del teclado cuando son presionadas. Si las quiere utilizar en su juego (Ej. BloqMay? para disparar) este comportamiento no es deseable, por lo que puede poner a cero esta variable para evitar que los LEDS sean actualizados.Relacionado con: install_keyboard, set_leds.
Volver al Indice