manage the tablette scrolling
This commit is contained in:
parent
f610c23638
commit
fdd4ddf978
@ -16,6 +16,7 @@ LOCAL_SRC_FILES := ewolAndroidAbstraction.cpp \
|
|||||||
LOCAL_LDLIBS := -llog -landroid
|
LOCAL_LDLIBS := -llog -landroid
|
||||||
|
|
||||||
LOCAL_CFLAGS := -D__PLATFORM__Android \
|
LOCAL_CFLAGS := -D__PLATFORM__Android \
|
||||||
|
-D__MODE__Touch \
|
||||||
-DEWOL_USE_FREE_TYPE \
|
-DEWOL_USE_FREE_TYPE \
|
||||||
-DETK_DEBUG_LEVEL=3 \
|
-DETK_DEBUG_LEVEL=3 \
|
||||||
-DEDN_DEBUG_LEVEL=3 \
|
-DEDN_DEBUG_LEVEL=3 \
|
||||||
|
@ -192,18 +192,28 @@ bool CodeView::OnEventInput(int32_t IdInput, ewol::eventInputType_te typeEvent,
|
|||||||
EDN_DEBUG("Event : " << IdInput << " type : " << type << " position(" << x << "," << y << ")");
|
EDN_DEBUG("Event : " << IdInput << " type : " << type << " position(" << x << "," << y << ")");
|
||||||
*/
|
*/
|
||||||
if (1 == IdInput) {
|
if (1 == IdInput) {
|
||||||
if (ewol::EVENT_INPUT_TYPE_DOWN == typeEvent) {
|
#ifndef __MODE__Touch
|
||||||
m_buttunOneSelected = true;
|
if (ewol::EVENT_INPUT_TYPE_DOWN == typeEvent) {
|
||||||
ewol::widgetManager::FocusKeep(this);
|
m_buttunOneSelected = true;
|
||||||
//EDN_INFO("mouse-event BT1 ==> One Clicked %d, %d", (uint32_t)event->x, (uint32_t)event->y);
|
ewol::widgetManager::FocusKeep(this);
|
||||||
m_bufferManager->Get(m_bufferID)->MouseEvent(x, y);
|
//EDN_INFO("mouse-event BT1 ==> One Clicked %d, %d", (uint32_t)event->x, (uint32_t)event->y);
|
||||||
MarkToReedraw();
|
m_bufferManager->Get(m_bufferID)->MouseEvent(x, y);
|
||||||
} else if (ewol::EVENT_INPUT_TYPE_UP == typeEvent) {
|
MarkToReedraw();
|
||||||
m_buttunOneSelected = false;
|
} else if (ewol::EVENT_INPUT_TYPE_UP == typeEvent) {
|
||||||
m_bufferManager->Get(m_bufferID)->Copy(COPY_MIDDLE_BUTTON);
|
m_buttunOneSelected = false;
|
||||||
MarkToReedraw();
|
m_bufferManager->Get(m_bufferID)->Copy(COPY_MIDDLE_BUTTON);
|
||||||
} else if (ewol::EVENT_INPUT_TYPE_SINGLE == typeEvent) {
|
MarkToReedraw();
|
||||||
// nothing to do ...
|
} else
|
||||||
|
#endif
|
||||||
|
if (ewol::EVENT_INPUT_TYPE_SINGLE == typeEvent) {
|
||||||
|
#ifdef __MODE__Touch
|
||||||
|
ewol::widgetManager::FocusKeep(this);
|
||||||
|
//EDN_INFO("mouse-event BT1 ==> One Clicked %d, %d", (uint32_t)event->x, (uint32_t)event->y);
|
||||||
|
m_bufferManager->Get(m_bufferID)->MouseEvent(x, y);
|
||||||
|
MarkToReedraw();
|
||||||
|
#else
|
||||||
|
// nothing to do ...
|
||||||
|
#endif
|
||||||
} else if (ewol::EVENT_INPUT_TYPE_DOUBLE == typeEvent) {
|
} else if (ewol::EVENT_INPUT_TYPE_DOUBLE == typeEvent) {
|
||||||
//EDN_INFO("mouse-event BT1 ==> Double Clicked %d, %d", (uint32_t)event->x, (uint32_t)event->y);
|
//EDN_INFO("mouse-event BT1 ==> Double Clicked %d, %d", (uint32_t)event->x, (uint32_t)event->y);
|
||||||
m_bufferManager->Get(m_bufferID)->MouseEventDouble();
|
m_bufferManager->Get(m_bufferID)->MouseEventDouble();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user