PS/2 Keyboard: Difference between revisions
Jump to navigation
Jump to search
[unchecked revision] | [unchecked revision] |
Content deleted Content added
→Scan Code Set 2: Add 2 missing empty lines (before backspace and after \) |
m →Enough, give me code!: Formatted code for legibility (id est indenting, mostly) |
||
Line 236: | Line 236: | ||
inb function and scancode table. |
inb function and scancode table. |
||
*/ |
*/ |
||
char getScancode() |
char getScancode() { |
||
⚫ | |||
{ |
|||
⚫ | |||
⚫ | |||
if(inb(0x60)!=c) { |
|||
⚫ | |||
c=inb(0x60); |
|||
if(c>0) |
|||
{ |
|||
return c; |
|||
c=inb(0x60); |
|||
} |
|||
if(c>0) |
|||
⚫ | |||
return c; |
|||
} |
} |
||
⚫ | |||
⚫ | |||
} |
|||
⚫ | |||
⚫ | |||
{ |
|||
⚫ | |||
} |
} |
||
</source> |
</source> |
||
== Scan Code Sets == |
== Scan Code Sets == |
||