keyboard.h

来自「this SRC packet is the headfiles that MI」· C头文件 代码 · 共 58 行

H
58
字号
#ifndef	__ASM_SH_KEYBOARD_H#define	__ASM_SH_KEYBOARD_H/* *	$Id: keyboard.h,v 1.12 2001/09/06 04:01:41 gniibe Exp $ */#include <linux/kd.h>#include <linux/config.h>#include <asm/machvec.h>#ifdef CONFIG_SH_EC3104#include <asm/keyboard-ec3104.h>#elsestatic __inline__ int kbd_setkeycode(unsigned int scancode,				     unsigned int keycode){    return -EOPNOTSUPP;}static __inline__ int kbd_getkeycode(unsigned int scancode){    return scancode > 127 ? -EINVAL : scancode;}#ifdef CONFIG_SH_DREAMCASTextern int kbd_translate(unsigned char scancode, unsigned char *keycode,			 char raw_mode);#elsestatic __inline__ int kbd_translate(unsigned char scancode,				    unsigned char *keycode, char raw_mode){    *keycode = scancode;    return 1;}#endifstatic __inline__ char kbd_unexpected_up(unsigned char keycode){    return 0200;}static __inline__ void kbd_leds(unsigned char leds){}extern void hp600_kbd_init_hw(void);extern void dreamcast_kbd_init_hw(void);static __inline__ void kbd_init_hw(void){	if (MACH_HP600) {		hp600_kbd_init_hw();	}}#endif#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?