Rev 9288 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 9288 | Rev 9768 | ||
---|---|---|---|
Line 6... | Line 6... | ||
6 | #include "SDL_sysevents.h" |
6 | #include "SDL_sysevents.h" |
7 | #include "SDL_sysvideo.h" |
7 | #include "SDL_sysvideo.h" |
8 | #include "SDL_events_c.h" |
8 | #include "SDL_events_c.h" |
9 | #include "SDL_menuetvideo.h" |
9 | #include "SDL_menuetvideo.h" |
Line 10... | Line 10... | ||
10 | 10 | ||
Line 11... | Line 11... | ||
11 | extern void MenuetOS_SDL_RepaintWnd(void); |
11 | extern void kos_SDL_RepaintWnd(void); |
12 | 12 | ||
13 | void MenuetOS_InitOSKeymap(_THIS) |
13 | void MenuetOS_InitOSKeymap(_THIS) |
14 | { |
14 | { |
Line 168... | Line 168... | ||
168 | switch(i) |
168 | switch(i) |
169 | { |
169 | { |
170 | case 0: |
170 | case 0: |
171 | return; |
171 | return; |
172 | case 1: |
172 | case 1: |
173 | MenuetOS_SDL_RepaintWnd(); |
173 | kos_SDL_RepaintWnd(); |
174 | break; |
174 | break; |
175 | case 2: |
175 | case 2: |
176 | key.scancode = __menuet__getkey(); |
176 | key.scancode = __menuet__getkey(); |
177 | if (key.scancode == 0xE0 || key.scancode == 0xE1) |
177 | if (key.scancode == 0xE0 || key.scancode == 0xE1) |
178 | {ext_code=key.scancode;break;} |
178 | {ext_code=key.scancode;break;} |
Line 216... | Line 216... | ||
216 | int dx=mx-this->hidden->win_size_x/2; |
216 | int dx=mx-this->hidden->win_size_x/2; |
217 | int dy=my-this->hidden->win_size_y/2; |
217 | int dy=my-this->hidden->win_size_y/2; |
218 | if (dx||dy) |
218 | if (dx||dy) |
219 | { |
219 | { |
220 | SDL_PrivateMouseMotion(0,1,dx,dy); |
220 | SDL_PrivateMouseMotion(0,1,dx,dy); |
221 | KolibriOS_CheckMouseMode(this); |
221 | kos_CheckMouseMode(this); |
222 | } |
222 | } |
223 | } |
223 | } |
224 | else |
224 | else |
225 | SDL_PrivateMouseMotion(0,0,mx,my); |
225 | SDL_PrivateMouseMotion(0,0,mx,my); |
226 | __asm__("int $0x40":"=a"(__tmp):"a"(37),"b"(2)); |
226 | __asm__("int $0x40":"=a"(__tmp):"a"(37),"b"(2)); |