right now what i'd like to know is what is sent by the touch event
is there a way to listen to /dev/input/event8 (that's where my touchscreen is located) to see what is sent when i tap on it?
of course i have nothing in the logs, even the debug log
the problem must be somewhere near here
Code:
state.button[MOUSE_LEFT_BUTTON] = (mouseState & SDL_BUTTON(1)) == SDL_BUTTON(1);
state.button[MOUSE_RIGHT_BUTTON] = (mouseState & SDL_BUTTON(3)) == SDL_BUTTON(3);
state.button[MOUSE_MIDDLE_BUTTON] = (mouseState & SDL_BUTTON(2)) == SDL_BUTTON(2);
state.button[MOUSE_EXTRA_BUTTON1] = (mouseState & SDL_BUTTON(4)) == SDL_BUTTON(4);
state.button[MOUSE_EXTRA_BUTTON2] = (mouseState & SDL_BUTTON(5)) == SDL_BUTTON(5);
the mouse_tile (which works) has a completely different definition of clicks
Code:
if( event.button.button == BUTTON_SX && event.button.type == SDL_MOUSEBUTTONDOWN )
btw, i think this problem could be somehow more interesting now, as i think the eeetop is using an evtouch device, so if it's an evtouch problem many eeetop users couldn't use the touchscreen to interact with the gui
on the other side, if it's a problem with my configuration, i'm of course on my own :p
i added some printf to Mouse.cpp, namely i did
Code:
if (m_mouseState.button[i])
{
if (!m_mouseState.active) // wake up mouse on any click
{
m_mouseState.active = true;
m_lastActiveTime = timeGetTime();
}
bNothingDown = false;
if (m_lastDown[i])
{ // start of hold
bHold[i] = true;
printf("%s\n", "tasturiello holdato: ", i);
}
else
{
if (timeGetTime() - m_lastClickTime[i] < MOUSE_DOUBLE_CLICK_LENGTH)
{ // Double click
bDoubleClick[i] = true;
printf("%s\n", "tasturiello doppioclickato: ", i);
}
else
{ // Mouse down
printf("%s\n", "tasturiello pusciato: ", i);
}
}
}
else
{
if (m_lastDown[i])
{ // Mouse up
bNothingDown = false;
bClick[i] = true;
m_lastClickTime[i] = timeGetTime();
printf("%s\n", "tasturiello sollevato: ", i);
}
else
{ // no change
}
but of course no way... i have an evidence of MOUSE button presses but no evidence of touchscreen taps, like in
Code:
xbmc -fs
The XBMC_HOME environment variable is not set.
tasturiello pusciato:
tasturiello holdato:
tasturiello sollevato:
tasturiello pusciato:
tasturiello sollevato:
btw, i think the existing code works with eeti driver (you're using it, aren't you?), but i can't use it, as it is incompatible with xorg 1.6, which is what comes with jaunty