From d1a5c738e62a9f0cb85658b435eefa8749006edc Mon Sep 17 00:00:00 2001 From: Ole Loots Date: Wed, 14 Nov 2012 21:37:35 +0100 Subject: Refactored menu event handling and got rid of several windom calls. --- atari/global_evnt.h | 23 ++++------------------- 1 file changed, 4 insertions(+), 19 deletions(-) (limited to 'atari/global_evnt.h') diff --git a/atari/global_evnt.h b/atari/global_evnt.h index 1e13264a2..76e73fc6b 100755 --- a/atari/global_evnt.h +++ b/atari/global_evnt.h @@ -18,6 +18,8 @@ #ifndef NS_ATARI_GLOBAL_EVNT_H #define NS_ATARI_GLOBAL_EVNT_H + +#include struct s_keybd_evnt_data { @@ -32,31 +34,14 @@ struct s_evnt_data } u; }; -struct s_evnt_data evnt_data; - -struct s_accelerator -{ - char ascii; /* either ascii or */ - long keycode; /* normalised keycode is valid */ - short mod; /* shift / ctrl etc */ -}; - -typedef void __CDECL (*menu_evnt_func)(WINDOW * win, int item, int title, void * data); -struct s_menu_item_evnt { - short title; /* to which menu this item belongs */ - short rid; /* resource ID */ - menu_evnt_func menu_func; /* click handler */ - struct s_accelerator accel; /* accelerator info */ - char * menustr; -}; +struct s_evnt_data evnt_data; /* - Global & Menu event handlers + Global event handlers */ void bind_global_events( void ); void unbind_global_events( void ); -void main_menu_update( void ); #endif -- cgit v1.2.3