Rev 9097 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 9097 | Rev 9790 | ||
---|---|---|---|
Line 1954... | Line 1954... | ||
1954 | 1954 | ||
1955 | oldMA = mouseadjustment; |
1955 | oldMA = mouseadjustment; |
1956 | DrawMouseSens (); |
1956 | DrawMouseSens (); |
1957 | do |
1957 | do |
1958 | { |
1958 | { |
1959 | uSDL_Delay(5); |
1959 | SDL_Delay(5); |
1960 | ReadAnyControl (&ci); |
1960 | ReadAnyControl (&ci); |
1961 | switch (ci.dir) |
1961 | switch (ci.dir) |
1962 | { |
1962 | { |
1963 | case dir_North: |
1963 | case dir_North: |
Line 2226... | Line 2226... | ||
2226 | VW_UpdateScreen (); |
2226 | VW_UpdateScreen (); |
2227 | WaitKeyUp (); |
2227 | WaitKeyUp (); |
2228 | redraw = 0; |
2228 | redraw = 0; |
2229 | } |
2229 | } |
Line 2230... | Line 2230... | ||
2230 | 2230 | ||
2231 | uSDL_Delay(5); |
2231 | SDL_Delay(5); |
Line 2232... | Line 2232... | ||
2232 | ReadAnyControl (&ci); |
2232 | ReadAnyControl (&ci); |
2233 | 2233 | ||
2234 | if (type == MOUSE || type == JOYSTICK) |
2234 | if (type == MOUSE || type == JOYSTICK) |
Line 2272... | Line 2272... | ||
2272 | } |
2272 | } |
2273 | tick ^= 1; |
2273 | tick ^= 1; |
2274 | lastFlashTime = GetTimeCount(); |
2274 | lastFlashTime = GetTimeCount(); |
2275 | VW_UpdateScreen (); |
2275 | VW_UpdateScreen (); |
2276 | } |
2276 | } |
2277 | else uSDL_Delay(5); |
2277 | else SDL_Delay(5); |
Line 2278... | Line 2278... | ||
2278 | 2278 | ||
2279 | // |
2279 | // |
2280 | // WHICH TYPE OF INPUT DO WE PROCESS? |
2280 | // WHICH TYPE OF INPUT DO WE PROCESS? |
2281 | // |
2281 | // |
Line 2395... | Line 2395... | ||
2395 | which = 3; |
2395 | which = 3; |
2396 | } |
2396 | } |
2397 | while (!cust->allowed[which]); |
2397 | while (!cust->allowed[which]); |
2398 | redraw = 1; |
2398 | redraw = 1; |
2399 | SD_PlaySound (MOVEGUN1SND); |
2399 | SD_PlaySound (MOVEGUN1SND); |
2400 | while (ReadAnyControl (&ci), ci.dir != dir_None) uSDL_Delay(5); |
2400 | while (ReadAnyControl (&ci), ci.dir != dir_None) SDL_Delay(5); |
2401 | IN_ClearKeysDown (); |
2401 | IN_ClearKeysDown (); |
2402 | break; |
2402 | break; |
Line 2403... | Line 2403... | ||
2403 | 2403 | ||
2404 | case dir_East: |
2404 | case dir_East: |
Line 2409... | Line 2409... | ||
2409 | which = 0; |
2409 | which = 0; |
2410 | } |
2410 | } |
2411 | while (!cust->allowed[which]); |
2411 | while (!cust->allowed[which]); |
2412 | redraw = 1; |
2412 | redraw = 1; |
2413 | SD_PlaySound (MOVEGUN1SND); |
2413 | SD_PlaySound (MOVEGUN1SND); |
2414 | while (ReadAnyControl (&ci), ci.dir != dir_None) uSDL_Delay(5); |
2414 | while (ReadAnyControl (&ci), ci.dir != dir_None) SDL_Delay(5); |
2415 | IN_ClearKeysDown (); |
2415 | IN_ClearKeysDown (); |
2416 | break; |
2416 | break; |
2417 | case dir_North: |
2417 | case dir_North: |
2418 | case dir_South: |
2418 | case dir_South: |
2419 | exit = 1; |
2419 | exit = 1; |
Line 2835... | Line 2835... | ||
2835 | MenuFadeIn (); |
2835 | MenuFadeIn (); |
Line 2836... | Line 2836... | ||
2836 | 2836 | ||
2837 | do |
2837 | do |
2838 | { |
2838 | { |
2839 | CheckPause (); |
2839 | CheckPause (); |
2840 | uSDL_Delay(5); |
2840 | SDL_Delay(5); |
2841 | ReadAnyControl (&ci); |
2841 | ReadAnyControl (&ci); |
2842 | switch (ci.dir) |
2842 | switch (ci.dir) |
2843 | { |
2843 | { |
2844 | case dir_South: |
2844 | case dir_South: |
Line 3282... | Line 3282... | ||
3282 | VWB_DrawPic (x, y, shape); |
3282 | VWB_DrawPic (x, y, shape); |
3283 | if (routine) |
3283 | if (routine) |
3284 | routine (which); |
3284 | routine (which); |
3285 | VW_UpdateScreen (); |
3285 | VW_UpdateScreen (); |
3286 | } |
3286 | } |
3287 | else uSDL_Delay(5); |
3287 | else SDL_Delay(5); |
Line 3288... | Line 3288... | ||
3288 | 3288 | ||
Line 3289... | Line 3289... | ||
3289 | CheckPause (); |
3289 | CheckPause (); |
3290 | 3290 | ||
Line 3482... | Line 3482... | ||
3482 | DrawHalfStep (int x, int y) |
3482 | DrawHalfStep (int x, int y) |
3483 | { |
3483 | { |
3484 | VWB_DrawPic (x, y, C_CURSOR1PIC); |
3484 | VWB_DrawPic (x, y, C_CURSOR1PIC); |
3485 | VW_UpdateScreen (); |
3485 | VW_UpdateScreen (); |
3486 | SD_PlaySound (MOVEGUN1SND); |
3486 | SD_PlaySound (MOVEGUN1SND); |
3487 | uSDL_Delay(1); //Fixed too long delay in the menu |
3487 | SDL_Delay(1); //Fixed too long delay in the menu |
3488 | } |
3488 | } |
Line 3489... | Line 3489... | ||
3489 | 3489 | ||
3490 | 3490 | ||
Line 3524... | Line 3524... | ||
3524 | ControlInfo ci; |
3524 | ControlInfo ci; |
Line 3525... | Line 3525... | ||
3525 | 3525 | ||
3526 | int32_t startTime = GetTimeCount (); |
3526 | int32_t startTime = GetTimeCount (); |
3527 | do |
3527 | do |
3528 | { |
3528 | { |
3529 | uSDL_Delay(5); |
3529 | SDL_Delay(5); |
3530 | ReadAnyControl (&ci); |
3530 | ReadAnyControl (&ci); |
3531 | } |
3531 | } |
3532 | while ((int32_t) GetTimeCount () - startTime < count && ci.dir != dir_None); |
3532 | while ((int32_t) GetTimeCount () - startTime < count && ci.dir != dir_None); |
Line 3730... | Line 3730... | ||
3730 | } |
3730 | } |
3731 | VW_UpdateScreen (); |
3731 | VW_UpdateScreen (); |
3732 | tick ^= 1; |
3732 | tick ^= 1; |
3733 | lastBlinkTime = GetTimeCount(); |
3733 | lastBlinkTime = GetTimeCount(); |
3734 | } |
3734 | } |
3735 | else uSDL_Delay(5); |
3735 | else SDL_Delay(5); |
Line 3736... | Line 3736... | ||
3736 | 3736 | ||
3737 | #ifdef SPANISH |
3737 | #ifdef SPANISH |
3738 | } |
3738 | } |
3739 | while (!Keyboard[sc_S] && !Keyboard[sc_N] && !Keyboard[sc_Escape]); |
3739 | while (!Keyboard[sc_S] && !Keyboard[sc_N] && !Keyboard[sc_Escape]); |