version 1.7 | | version 1.8 |
---|
| | |
* Routines to configure keyboard, joystick, etc.. | | * Routines to configure keyboard, joystick, etc.. |
* | | * |
* $Log$ | | * $Log$ |
| | * Revision 1.8 2000/10/27 02:57:28 donut |
| | * key/joy/etc config boxes and text appear in the right places when modifying config |
| | * |
* Revision 1.7 2000/10/17 22:14:29 sekmu | | * Revision 1.7 2000/10/17 22:14:29 sekmu |
* mingw version joystick 0 movement bug fixed | | * mingw version joystick 0 movement bug fixed |
* | | * |
| | |
| | |
char *btype_text[] = { "BT_KEY", "BT_MOUSE_BUTTON", "BT_MOUSE_AXIS", "BT_JOY_BUTTON", "BT_JOY_AXIS", "BT_INVERT" }; | | char *btype_text[] = { "BT_KEY", "BT_MOUSE_BUTTON", "BT_MOUSE_AXIS", "BT_JOY_BUTTON", "BT_JOY_AXIS", "BT_INVERT" }; |
| | |
#define INFO_Y 188 | | #define INFO_Y (188*scale) //scale to res. -MPM |
| | |
typedef struct kc_item { | | typedef struct kc_item { |
short id; // The id of this item | | short id; // The id of this item |
| | |
looper++; | | looper++; |
if (looper>63) looper=0; | | if (looper>63) looper=0; |
| | |
gr_urect( item->w1+item->x, item->y-1, item->w1+item->x+item->w2, item->y+h ); | | gr_urect( (item->w1+item->x)*scale, item->y*scale-1, (item->w1+item->x+item->w2)*scale, item->y*scale+h ); |
| | |
gr_set_fontcolor( BM_XRGB(28,28,28), -1 ); | | gr_set_fontcolor( BM_XRGB(28,28,28), -1 ); |
| | |
x = item->w1+item->x+((item->w2-w)/2); | | x = (item->w1+item->x)*scale+((item->w2*scale-w)/2); |
| | |
gr_string( x, item->y, "?" ); | | gr_string( x, item->y*scale, "?" ); |
| | |
gr_update(); | | gr_update(); |
} | | } |
| | |
kc_drawitem( item, 1 ); | | kc_drawitem( item, 1 ); |
gr_set_fontcolor( BM_XRGB(28,28,28), BM_XRGB(0,0,0) ); | | gr_set_fontcolor( BM_XRGB(28,28,28), BM_XRGB(0,0,0) ); |
| | |
nm_restore_background( 0, INFO_Y, 310, grd_curcanv->cv_font->ft_h ); | | nm_restore_background( 0, INFO_Y, GWIDTH-10, grd_curcanv->cv_font->ft_h ); |
| | |
game_flush_inputs(); | | game_flush_inputs(); |
| | |
| | |
item->value = code; | | item->value = code; |
} | | } |
kc_drawitem( item, 1 ); | | kc_drawitem( item, 1 ); |
nm_restore_background( 0, INFO_Y, 310, grd_curcanv->cv_font->ft_h ); | | nm_restore_background( 0, INFO_Y, GWIDTH-10, grd_curcanv->cv_font->ft_h ); |
game_flush_inputs(); | | game_flush_inputs(); |
} | | } |
| | |
| | |
item->value = code; | | item->value = code; |
} | | } |
kc_drawitem( item, 1 ); | | kc_drawitem( item, 1 ); |
nm_restore_background( 0, INFO_Y, 310, grd_curcanv->cv_font->ft_h ); | | nm_restore_background( 0, INFO_Y, GWIDTH-10, grd_curcanv->cv_font->ft_h ); |
game_flush_inputs(); | | game_flush_inputs(); |
| | |
} | | } |
| | |
item->value = code; | | item->value = code; |
} | | } |
kc_drawitem( item, 1 ); | | kc_drawitem( item, 1 ); |
nm_restore_background( 0, INFO_Y, 310, grd_curcanv->cv_font->ft_h ); | | nm_restore_background( 0, INFO_Y, GWIDTH-10, grd_curcanv->cv_font->ft_h ); |
game_flush_inputs(); | | game_flush_inputs(); |
| | |
} | | } |
| | |
item->value = code; | | item->value = code; |
} | | } |
kc_drawitem( item, 1 ); | | kc_drawitem( item, 1 ); |
nm_restore_background( 0, INFO_Y, 310, grd_curcanv->cv_font->ft_h ); | | nm_restore_background( 0, INFO_Y, GWIDTH-10, grd_curcanv->cv_font->ft_h ); |
game_flush_inputs(); | | game_flush_inputs(); |
| | |
} | | } |