formatting cleanup

(cherry picked from commit 769acd2934)
This commit is contained in:
Ben Byer 2008-04-17 02:30:36 -07:00 committed by Jeremy Huddleston
parent 700e14c226
commit 0bd1c369cc

View File

@ -324,16 +324,12 @@ Bool DarwinEQInit(DevicePtr pKbd, DevicePtr pPtr) {
*/
void ProcessInputEvents(void) {
xEvent xe;
// button number and modifier mask of currently pressed fake button
input_check_flag=0;
int x = sizeof(xe);
// ErrorF("calling mieqProcessInputEvents\n");
mieqProcessInputEvents();
// Empty the signaling pipe
int x = sizeof(xe);
while (x == sizeof(xe)) {
// DEBUG_LOG("draining pipe\n");
x = read(darwinEventReadFD, &xe, sizeof(xe));
}
}
@ -343,7 +339,7 @@ void ProcessInputEvents(void) {
void DarwinPokeEQ(void) {
char nullbyte=0;
input_check_flag++;
// <daniels> bushing: oh, i ... er ... christ.
// <daniels> oh, i ... er ... christ.
write(darwinEventWriteFD, &nullbyte, 1);
}
@ -389,6 +385,7 @@ void DarwinSendPointerEvents(int ev_type, int ev_button, int pointer_x, int poin
return;
}
}
if (ev_type == ButtonRelease && darwinFakeButtons && darwinFakeMouseButtonDown) {
// If last mousedown was a fake click, don't check for
// mouse modifiers here. The user may have released the
@ -444,7 +441,7 @@ void DarwinSendProximityEvents(int ev_type, int pointer_x, int pointer_y,
if(!darwinEvents) {
ErrorF("DarwinSendProximityvents called before darwinEvents was initialized\n");
return;
}
}
num_events = GetProximityEvents(darwinEvents, darwinPointer, ev_type,
0, 5, valuators);