зеркало из https://github.com/mozilla/pluotsorbet.git
Add a README to java/ to explain the things we change in the phoneME reference implementation
This commit is contained in:
Родитель
5e101b41b7
Коммит
9b902232a7
|
@ -0,0 +1,6 @@
|
|||
List of changes to phoneME:
|
||||
com/sun/midp/lcdui/DisplayEventConsumer.java - Added a handleGestureEvent function to the interface
|
||||
javax/microedition/lcdui/Display.java - Added a handleGestureEvent function to handle gesture events
|
||||
com/sun/midp/lcdui/DisplayEventListener.java - Added code to handle events with type=GESTURE_EVENT
|
||||
com/sun/midp/events/NativeEvent.java - Added some parameters to handle events with a higher number of parameters (like Gesture events)
|
||||
com/sun/midp/events/EventTypes.java - Added a new event type (GETURE_EVENT)
|
|
@ -199,7 +199,6 @@ public class DisplayEventListener implements EventListener {
|
|||
return;
|
||||
|
||||
case EventTypes.GESTURE_EVENT:
|
||||
System.out.println("GESTUREEVENT");
|
||||
GestureEvent gestureEvent = new GestureEventImpl(nativeEvent.intParam1,
|
||||
nativeEvent.intParam2,
|
||||
nativeEvent.intParam3,
|
||||
|
|
|
@ -3292,7 +3292,9 @@ public class Display {
|
|||
if(currentCopy != null &&
|
||||
window.bodyContainsPoint(event.getStartX(), event.getStartY())) {
|
||||
// Should we subtract window.getBodyAnchorX like in pointer events?
|
||||
System.out.println("BODYANCHORX: " + window.getBodyAnchorX());
|
||||
if (window.getBodyAnchorX() > 0 || window.getBodyAnchorY() > 0) {
|
||||
System.out.println("We should take window.getBodyAnchor[XY] into account in handleGestureEvent");
|
||||
}
|
||||
GestureRegistrationManager.callListener(event);
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче