fix warnings
white space cleanup git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27311 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -480,8 +480,8 @@ InputServer::MessageReceived(BMessage* message)
|
|||||||
BMessage reply;
|
BMessage reply;
|
||||||
status_t status = B_OK;
|
status_t status = B_OK;
|
||||||
|
|
||||||
PRINT(("%s what:%c%c%c%c\n", __PRETTY_FUNCTION__, message->what >> 24,
|
PRINT(("%s what:%c%c%c%c\n", __PRETTY_FUNCTION__, (char)(message->what >> 24),
|
||||||
message->what >> 16, message->what >> 8, message->what));
|
(char)(message->what >> 16), (char)(message->what >> 8), (char)message->what));
|
||||||
|
|
||||||
switch (message->what) {
|
switch (message->what) {
|
||||||
case IS_SET_METHOD:
|
case IS_SET_METHOD:
|
||||||
@@ -973,8 +973,8 @@ status_t
|
|||||||
InputServer::EnqueueMethodMessage(BMessage* message)
|
InputServer::EnqueueMethodMessage(BMessage* message)
|
||||||
{
|
{
|
||||||
CALLED();
|
CALLED();
|
||||||
PRINT(("%s what:%c%c%c%c\n", __PRETTY_FUNCTION__, message->what >> 24,
|
PRINT(("%s what:%c%c%c%c\n", __PRETTY_FUNCTION__, (char)(message->what >> 24),
|
||||||
message->what >> 16, message->what >> 8, message->what));
|
(char)(message->what >> 16), (char)(message->what >> 8), (char)message->what));
|
||||||
|
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
if (message->what == 'IMEV') {
|
if (message->what == 'IMEV') {
|
||||||
@@ -1327,7 +1327,7 @@ InputServer::_StartEventLoop()
|
|||||||
CALLED();
|
CALLED();
|
||||||
fEventLooperPort = create_port(100, "input server events");
|
fEventLooperPort = create_port(100, "input server events");
|
||||||
if (fEventLooperPort < 0) {
|
if (fEventLooperPort < 0) {
|
||||||
PRINTERR(("InputServer: create_port error: (0x%x) %s\n",
|
PRINTERR(("InputServer: create_port error: (0x%lx) %s\n",
|
||||||
fEventLooperPort, strerror(fEventLooperPort)));
|
fEventLooperPort, strerror(fEventLooperPort)));
|
||||||
return fEventLooperPort;
|
return fEventLooperPort;
|
||||||
}
|
}
|
||||||
@@ -1460,8 +1460,8 @@ InputServer::_SanitizeEvents(EventList& events)
|
|||||||
int32 x, y;
|
int32 x, y;
|
||||||
float absX, absY;
|
float absX, absY;
|
||||||
|
|
||||||
if (event->FindInt32("x", &x) == B_OK
|
if (event->FindInt32("x", &x) == B_OK
|
||||||
&& event->FindInt32("y", &y) == B_OK) {
|
&& event->FindInt32("y", &y) == B_OK) {
|
||||||
fMousePos.x += x;
|
fMousePos.x += x;
|
||||||
fMousePos.y -= y;
|
fMousePos.y -= y;
|
||||||
fMousePos.ConstrainTo(fFrame);
|
fMousePos.ConstrainTo(fFrame);
|
||||||
@@ -1474,23 +1474,23 @@ InputServer::_SanitizeEvents(EventList& events)
|
|||||||
|
|
||||||
PRINT(("new position: %f, %f, %ld, %ld\n",
|
PRINT(("new position: %f, %f, %ld, %ld\n",
|
||||||
fMousePos.x, fMousePos.y, x, y));
|
fMousePos.x, fMousePos.y, x, y));
|
||||||
} else if (event->FindFloat("x", &absX) == B_OK
|
} else if (event->FindFloat("x", &absX) == B_OK
|
||||||
&& event->FindFloat("y", &absY) == B_OK) {
|
&& event->FindFloat("y", &absY) == B_OK) {
|
||||||
// device gives us absolute screen coords
|
// device gives us absolute screen coords
|
||||||
// in range 0..1
|
// in range 0..1
|
||||||
// convert to absolute screen pos
|
// convert to absolute screen pos
|
||||||
// (the message is supposed to contain the original
|
// (the message is supposed to contain the original
|
||||||
// absolute coordinates as "be:tablet_x/y")
|
// absolute coordinates as "be:tablet_x/y")
|
||||||
fMousePos.x = absX * fFrame.Width();
|
fMousePos.x = absX * fFrame.Width();
|
||||||
fMousePos.y = absY * fFrame.Height();
|
fMousePos.y = absY * fFrame.Height();
|
||||||
fMousePos.ConstrainTo(fFrame);
|
fMousePos.ConstrainTo(fFrame);
|
||||||
|
|
||||||
event->RemoveName("x");
|
event->RemoveName("x");
|
||||||
event->RemoveName("y");
|
event->RemoveName("y");
|
||||||
event->AddPoint("where", fMousePos);
|
event->AddPoint("where", fMousePos);
|
||||||
PRINT(("new position : %f, %f\n", fMousePos.x, fMousePos.y));
|
PRINT(("new position : %f, %f\n", fMousePos.x, fMousePos.y));
|
||||||
} else if (event->FindPoint("where", &where) == B_OK) {
|
} else if (event->FindPoint("where", &where) == B_OK) {
|
||||||
fMousePos = where;
|
fMousePos = where;
|
||||||
fMousePos.ConstrainTo(fFrame);
|
fMousePos.ConstrainTo(fFrame);
|
||||||
|
|
||||||
event->ReplacePoint("where", fMousePos);
|
event->ReplacePoint("where", fMousePos);
|
||||||
@@ -1531,7 +1531,7 @@ InputServer::_SanitizeEvents(EventList& events)
|
|||||||
// to next input method
|
// to next input method
|
||||||
// (pressing "shift" will let us switch to the previous method)
|
// (pressing "shift" will let us switch to the previous method)
|
||||||
|
|
||||||
PRINT(("SanitizeEvents: %lx, %lx\n", fKeyInfo.modifiers,
|
PRINT(("SanitizeEvents: %lx, %x\n", fKeyInfo.modifiers,
|
||||||
fKeyInfo.key_states[KEY_Spacebar >> 3]));
|
fKeyInfo.key_states[KEY_Spacebar >> 3]));
|
||||||
|
|
||||||
uint8 byte;
|
uint8 byte;
|
||||||
|
|||||||
Reference in New Issue
Block a user