Subversion Repositories Games.Rick Dangerous

Rev

Rev 7 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 7 Rev 10
Line 22... Line 22...
22
#define SYSJOY_RANGE 3280
22
#define SYSJOY_RANGE 3280
23
 
23
 
24
static SDL_Event event;
24
static SDL_Event event;
25
extern U8 want_filter;
25
extern U8 want_filter;
26
extern U8 want_fullscreen;
26
extern U8 want_fullscreen;
-
 
27
extern U8 enable_endkey;
27
extern U8 recreate_screen;
28
extern U8 recreate_screen;
28
 
29
 
29
 
30
 
30
/*
31
/*
31
 * Process an event
32
 * Process an event
Line 69... Line 70...
69
      else if (key == SDL_SCANCODE_X || key == SDL_SCANCODE_RIGHT)
70
      else if (key == SDL_SCANCODE_X || key == SDL_SCANCODE_RIGHT)
70
      {
71
      {
71
         control_status |= CONTROL_RIGHT;
72
         control_status |= CONTROL_RIGHT;
72
         control_last = CONTROL_RIGHT;
73
         control_last = CONTROL_RIGHT;
73
      }
74
      }
74
      else if (key == SDL_SCANCODE_PAUSE)
75
      else if ((key == SDL_SCANCODE_PAUSE) || (key == SDL_SCANCODE_P))
75
      {
76
      {
76
         control_status |= CONTROL_PAUSE;
77
         control_status |= CONTROL_PAUSE;
77
         control_last = CONTROL_PAUSE;
78
         control_last = CONTROL_PAUSE;
78
      }
79
      }
79
      else if (key == SDL_SCANCODE_END)
80
      else if ((key == SDL_SCANCODE_END) && enable_endkey)
80
      {
81
      {
81
         control_status |= CONTROL_END;
82
         control_status |= CONTROL_END;
82
         control_last = CONTROL_END;
83
         control_last = CONTROL_END;
83
      }
84
      }
84
      else if (key == SDL_SCANCODE_ESCAPE)
85
      else if (key == SDL_SCANCODE_ESCAPE)
Line 126... Line 127...
126
      else if (key == SDL_SCANCODE_X || key == SDL_SCANCODE_RIGHT)
127
      else if (key == SDL_SCANCODE_X || key == SDL_SCANCODE_RIGHT)
127
      {
128
      {
128
         control_status &= ~CONTROL_RIGHT;
129
         control_status &= ~CONTROL_RIGHT;
129
         control_last = CONTROL_RIGHT;
130
         control_last = CONTROL_RIGHT;
130
      }
131
      }
131
      else if (key == SDL_SCANCODE_PAUSE)
132
      else if ((key == SDL_SCANCODE_PAUSE) || (key == SDL_SCANCODE_P))
132
      {
133
      {
133
         control_status &= ~CONTROL_PAUSE;
134
         control_status &= ~CONTROL_PAUSE;
134
         control_last = CONTROL_PAUSE;
135
         control_last = CONTROL_PAUSE;
135
      }
136
      }
136
      else if (key == SDL_SCANCODE_END)
137
      else if ((key == SDL_SCANCODE_END) && enable_endkey)
137
      {
138
      {
138
         control_status &= ~CONTROL_END;
139
         control_status &= ~CONTROL_END;
139
         control_last = CONTROL_END;
140
         control_last = CONTROL_END;
140
      }
141
      }
141
      else if (key == SDL_SCANCODE_ESCAPE)
142
      else if (key == SDL_SCANCODE_ESCAPE)