... scancode=inportb(0x60); if((scancode<0x40)&&(scancode!=0x2a)) { if(peekb(0x0040, 0x0017)&0x40) { //if CAPSLOCK is active // Now we have to flip UPPER/lower state of A-Z only! 16—25,30—38,44—50 if(((scancode>15)&&(scancode<26))||((scancode> ...
... scancode . Moreover , every application that uses a custom keyboard driver tracks its own keyboard mapping . This means that you will need to map keycodes for both the console and graphical desktop . Mapping Console Keys The kernel ...
... scancode 0x12 (if it's the left SHIFT key) or 0x59 (if it's the right SHIFT key) to represent a make event on SHIFT. 4. You depress the A key. The keyboard sends scancode 0x1C (make on A). 5. You release the A key. The keyboard sends ...
... scanCode holds scan code movf btfsc goto newScan , f ; Copy onto itself STATUS , Z ; ScanExit Is it zero ; At this point a new scan code is detected ; movf scanCode , w ; To w If scan code is in the range 0 to 9 , that is , a decimal ...