2
* OpenTyrian: A modern cross-platform port of Tyrian
3
* Copyright (C) 2007-2009 The OpenTyrian Development Team
5
* This program is free software; you can redistribute it and/or
6
* modify it under the terms of the GNU General Public License
7
* as published by the Free Software Foundation; either version 2
8
* of the License, or (at your option) any later version.
10
* This program is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
* GNU General Public License for more details.
15
* You should have received a copy of the GNU General Public License
16
* along with this program; if not, write to the Free Software
17
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
30
JE_boolean inputDetected;
32
JE_boolean JE_anyButton( void )
35
service_SDL_events(true);
36
return newkey || mousedown || joydown;
39
void JE_dBar3( SDL_Surface *surface, JE_integer x, JE_integer y, JE_integer num, JE_integer col )
46
for (z = 0; z <= num; z++)
48
JE_rectangle(surface, x, y - 1, x + 8, y, col); /* <MXD> SEGa000 */
60
void JE_barDrawShadow( SDL_Surface *surface, JE_word x, JE_word y, JE_word res, JE_word col, JE_word amt, JE_word xsize, JE_word ysize )
65
for (int z = 1; z <= amt / res; z++)
67
JE_barShade(surface, x+2, y+2, x+xsize+2, y+ysize+2);
68
fill_rectangle_xy(surface, x, y, x+xsize, y+ysize, col+12);
69
fill_rectangle_xy(surface, x, y, x+xsize, y, col+13);
70
JE_pix(surface, x, y, col+15);
71
fill_rectangle_xy(surface, x, y+ysize, x+xsize, y+ysize, col+11);
78
JE_barShade(surface, x+2, y+2, x+xsize+2, y+ysize+2);
79
fill_rectangle_xy(surface, x,y, x+xsize, y+ysize, col+(12 / res * amt));
83
void JE_wipeKey( void )
85
// /!\ Doesn't seems to affect anything.