Add a README to java/ to explain the things we change in the phoneME reference implementation

This commit is contained in:
Marco Castelluccio 2014-08-19 14:55:05 -07:00
Родитель 5e101b41b7
Коммит 9b902232a7
3 изменённых файлов: 9 добавлений и 2 удалений

6
java/README Normal file
Просмотреть файл

@ -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);
}
}