ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/Deliantra-Client/bin/pclient
(Generate patch)

Comparing deliantra/Deliantra-Client/bin/pclient (file contents):
Revision 1.56 by root, Sun Apr 9 22:28:05 2006 UTC vs.
Revision 1.57 by root, Sun Apr 9 23:11:16 2006 UTC

31our $WIDTH; 31our $WIDTH;
32our $HEIGHT; 32our $HEIGHT;
33our $FULLSCREEN; 33our $FULLSCREEN;
34 34
35our $FONTSIZE; 35our $FONTSIZE;
36our $FOCUS; 36
37our $HOVER; 37our ($FOCUS, $HOVER, $GRAB); # various widgets
38 38
39our $SDL_TIMER; 39our $SDL_TIMER;
40our $SDL_APP; 40our $SDL_APP;
41our $SDL_EV = new SDL::Event; 41our $SDL_EV = new SDL::Event;
42our %SDL_CB; 42our %SDL_CB;
238 SDL_KEYUP() => sub { 238 SDL_KEYUP() => sub {
239 Crossfire::Client::Widget::feed_sdl_key_up_event ($SDL_EV); 239 Crossfire::Client::Widget::feed_sdl_key_up_event ($SDL_EV);
240 }, 240 },
241 SDL_MOUSEMOTION() => sub { 241 SDL_MOUSEMOTION() => sub {
242 my ($x, $y) = ($SDL_EV->motion_x, $SDL_EV->motion_y); 242 my ($x, $y) = ($SDL_EV->motion_x, $SDL_EV->motion_y);
243 $HOVER = $TOPLEVEL->find_widget ($x, $y); 243 $HOVER = $GRAB || $TOPLEVEL->find_widget ($x, $y);
244 ::refresh; 244 ::refresh;
245
246 warn "mouse $x, $y = $HOVER\n";
247 }, 245 },
248 SDL_MOUSEBUTTONDOWN() => sub { 246 SDL_MOUSEBUTTONDOWN() => sub {
249 Crossfire::Client::Widget::feed_sdl_button_down_event ($SDL_EV); 247 Crossfire::Client::Widget::feed_sdl_button_down_event ($SDL_EV);
250 }, 248 },
251 SDL_MOUSEBUTTONUP() => sub { 249 SDL_MOUSEBUTTONUP() => sub {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines