Subversion Repositories Kolibri OS

Rev

Rev 3320 | Rev 3356 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3320 Rev 3355
Line 3... Line 3...
3
;; Copyright (C) KolibriOS team 2004-2011. All rights reserved. ;;
3
;; Copyright (C) KolibriOS team 2004-2011. All rights reserved. ;;
4
;; Copyright (C) MenuetOS 2000-2004 Ville Mikael Turjanmaa      ;;
4
;; Copyright (C) MenuetOS 2000-2004 Ville Mikael Turjanmaa      ;;
5
;; Distributed under terms of the GNU General Public License    ;;
5
;; Distributed under terms of the GNU General Public License    ;;
6
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
6
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Line 7... Line 7...
7
 
7
 
Line 8... Line 8...
8
$Revision: 3320 $
8
$Revision: 3355 $
9
 
9
 
10
 
10
 
Line 15... Line 15...
15
VKEY_LALT     = 0000000000010000b
15
VKEY_LALT     = 0000000000010000b
16
VKEY_RALT     = 0000000000100000b
16
VKEY_RALT     = 0000000000100000b
17
VKEY_CAPSLOCK = 0000000001000000b
17
VKEY_CAPSLOCK = 0000000001000000b
18
VKEY_NUMLOCK  = 0000000010000000b
18
VKEY_NUMLOCK  = 0000000010000000b
19
VKEY_SCRLOCK  = 0000000100000000b
19
VKEY_SCRLOCK  = 0000000100000000b
-
 
20
VKEY_LWIN     = 0000001000000000b
-
 
21
VKEY_RWIN     = 0000010000000000b
Line 20... Line 22...
20
 
22
 
21
VKEY_SHIFT    = 0000000000000011b
23
VKEY_SHIFT    = 0000000000000011b
22
VKEY_CONTROL  = 0000000000001100b
24
VKEY_CONTROL  = 0000000000001100b
Line 222... Line 224...
222
.normal_code:
224
.normal_code:
223
        mov     cl, 0
225
        mov     cl, 0
224
        xchg    cl, [ext_code]
226
        xchg    cl, [ext_code]
225
        and     al, 0x7F
227
        and     al, 0x7F
226
        mov     bh, 1
228
        mov     bh, 1
-
 
229
;--------------------------------------
-
 
230
@@:
-
 
231
        cmp     al, 0x5B
-
 
232
        jne     @f
-
 
233
        
-
 
234
        cmp     cl, 0xE0
-
 
235
        jne     .writekey
-
 
236
        
-
 
237
        mov     eax, VKEY_LWIN
-
 
238
        jmp     .modifier
-
 
239
;--------------------------------------
-
 
240
@@:
-
 
241
        cmp     al, 0x5C
-
 
242
        jne     @f
-
 
243
        
-
 
244
        cmp     cl, 0xE0
-
 
245
        jne     .writekey
-
 
246
        
-
 
247
        mov     eax, VKEY_RWIN
-
 
248
        jmp     .modifier
-
 
249
;--------------------------------------
227
@@:
250
@@:
228
        cmp     al, 0x2A
251
        cmp     al, 0x2A
229
        jne     @f
252
        jne     @f
Line 230... Line 253...
230
        
253