Mercurial > mplayer.hg
comparison Gui/win32/gui.c @ 20132:a8aa764559fa
added a simple timer to hide the mouse when in fullscreen mode.
author | vayne |
---|---|
date | Mon, 09 Oct 2006 18:22:57 +0000 |
parents | b69d78e8aee8 |
children | 26867dede11c |
comparison
equal
deleted
inserted
replaced
20131:a16eef9ffef6 | 20132:a8aa764559fa |
---|---|
564 mplayer_put_key(MOUSE_BTN5_DBL); | 564 mplayer_put_key(MOUSE_BTN5_DBL); |
565 else | 565 else |
566 mplayer_put_key(MOUSE_BTN6_DBL); | 566 mplayer_put_key(MOUSE_BTN6_DBL); |
567 break; | 567 break; |
568 } | 568 } |
569 case WM_TIMER: | |
570 { | |
571 if(fullscreen) while(ShowCursor(FALSE) >= 0){} | |
572 KillTimer(hWnd, ID_TIMER); | |
573 return 0; | |
574 } | |
575 case WM_MOUSEMOVE: | |
576 { | |
577 ShowCursor(TRUE); | |
578 SetTimer(hWnd, ID_TIMER, 3000, (TIMERPROC) NULL); | |
579 break; | |
580 } | |
569 case WM_WINDOWPOSCHANGED: | 581 case WM_WINDOWPOSCHANGED: |
570 { | 582 { |
571 int tmpheight=0; | 583 int tmpheight=0; |
572 static uint32_t rect_width; | 584 static uint32_t rect_width; |
573 static uint32_t rect_height; | 585 static uint32_t rect_height; |
574 RECT rd; | 586 RECT rd; |
575 POINT pt; | 587 POINT pt; |
576 while(ShowCursor(TRUE) <= 0){} | |
577 pt.x = 0; | 588 pt.x = 0; |
578 pt.y = 0; | 589 pt.y = 0; |
579 GetClientRect(hWnd, &rd); | 590 GetClientRect(hWnd, &rd); |
580 ClientToScreen(hWnd, &pt); | 591 ClientToScreen(hWnd, &pt); |
581 | 592 |