Rev 5148 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 5148 | Rev 5294 | ||
---|---|---|---|
Line 146... | Line 146... | ||
146 | ; 1d. Further actions are slightly different for key press and key release. |
146 | ; 1d. Further actions are slightly different for key press and key release. |
147 | ; Decide what to do. |
147 | ; Decide what to do. |
148 | test edx, edx |
148 | test edx, edx |
149 | jz .multimedia_key_released |
149 | jz .multimedia_key_released |
150 | .multimedia_key_pressed: |
150 | .multimedia_key_pressed: |
- | 151 | mov [edi+multimedia_device_data.last_pressed], eax |
|
151 | ; The key is pressed. |
152 | ; The key is pressed. |
152 | push ecx |
153 | push eax |
153 | mov ecx, 0xE0 |
154 | mov ecx, 0xE0 |
154 | invoke SetKeyboardData |
155 | invoke SetKeyboardData |
155 | pop ecx |
156 | pop ecx |
156 | invoke SetKeyboardData |
157 | invoke SetKeyboardData |
157 | ret |
158 | ret |
Line 158... | Line 159... | ||
158 | 159 | ||
159 | .multimedia_key_released: |
160 | .multimedia_key_released: |
160 | mov [edi+multimedia_device_data.last_pressed], 0 |
161 | mov [edi+multimedia_device_data.last_pressed], 0 |
161 | ; The key is released. |
162 | ; The key is released. |
162 | or cl, 0x80 |
163 | or cl, 0x80 |
163 | push ecx |
164 | push eax |
164 | mov ecx, 0xE0 |
165 | mov ecx, 0xE0 |
165 | invoke SetKeyboardData |
166 | invoke SetKeyboardData |
166 | pop ecx |
167 | pop ecx |
167 | invoke SetKeyboardData |
168 | invoke SetKeyboardData |