键盘仅因其各自的扫描代码而有所不同?
我正在研究自己作为爱好的操作系统。目前,我正在为操作系统编写PS/2键盘驱动程序,并想知道其他键盘(例如USB键盘)是否仅通过其各自的扫描代码与PS/2键盘有所不同。
这个假设是真的吗?提前致谢。
编辑
一些细节:我的操作系统是32位,因此我没有使用任何硬件中断。
I am working on an operating system that I created as a hobby. Currently I am writing a PS/2 keyboard driver for my OS, and wondering whether other keyboards (eg, USB keyboards) differ from a PS/2 keyboard only by their respective scan codes.
Is this assumption true? Thanks in advance.
EDIT
Some details: My OS is 32-bit and so I am not using any hardware interrupts.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
就我而言,PS/2键盘和其他键盘仅在几种方面有所不同,扫描代码,灯光(例如盖帽锁,滚动锁)和键盘可能具有的额外功能(读卡器等)。
As far as I am concerned PS/2 keyboards and other keyboards only differ in a few ways, the scan codes, the lights (eg caps lock, scroll lock) and extra features that the keyboard might have (card readers, etc).