comparison window/event.cc @ 43:01aa5ddf7dc8

A lot of very minor improvements (deleted some unused variables, and other things like that...)
author thib
date Tue, 24 Mar 2009 19:45:48 +0000
parents 223b71206888
children ed6c21dde840
comparison
equal deleted inserted replaced
42:039d813d4cef 43:01aa5ddf7dc8
33 #include<iostream> 33 #include<iostream>
34 #include<sys/stat.h> 34 #include<sys/stat.h>
35 35
36 using namespace std; 36 using namespace std;
37 37
38 extern bool save_req = false, load_req = false, grpdump_req = false; // scn2k/scn2k_impl.cc: キーボードからセーブ・ロードできるように 38 bool save_req = false, load_req = false, grpdump_req = false; // scn2k/scn2k_impl.cc: キーボードからセーブ・ロードできるように
39 extern bool pressAreq=false,pressFreq=false,pressDreq=false; 39 bool pressAreq=false,pressFreq=false,pressDreq=false;
40 namespace Event { 40 namespace Event {
41 /* Impl: struct Event::Video */ 41 /* Impl: struct Event::Video */
42 42
43 Video::Video(Container& container) : region(0, 0, 0, 0), z(0), parent(container) { 43 Video::Video(Container& container) : region(0, 0, 0, 0), z(0), parent(container) {
44 activated = false; 44 activated = false;
530 current_time = time; 530 current_time = time;
531 bool ret = true; 531 bool ret = true;
532 ret = ret && pimpl_video->Exec(); 532 ret = ret && pimpl_video->Exec();
533 ret = ret && pimpl_time->Exec(time); 533 ret = ret && pimpl_time->Exec(time);
534 int i; int mask = 1; 534 int i; int mask = 1;
535 int new_button_pressed = pimpl_video->button_pressed; 535
536 for (i=0; i<BUTTON_MAX; i++) { 536 for (i=0; i<BUTTON_MAX; i++) {
537 if (pimpl_video->button_released&mask) { 537 if (pimpl_video->button_released&mask) {
538 button_presscount[i]++; 538 button_presscount[i]++;
539 } 539 }
540 mask <<= 1; 540 mask <<= 1;