On 2 September 2011 16:52, Johannes Rasche <johannesrasche@mac.com> wrote:
for at least MAC OS it seems to be very cool :) to support the trackpads I cannot imagine that other platforms don't make use of trackpads yes a good soul is wanted Am 02.09.2011 um 15:45 schrieb Igor Stasenko:
Well, cocoa vms are handling horizontal wheel events: ===== - (void) recordWheelEvent:(NSEvent *) theEvent fromView: (sqSqueakOSXNSView *) aView{ [self recordMouseEvent: theEvent fromView: aView]; CGFloat x = [theEvent deltaX]; CGFloat y = [theEvent deltaY]; if (x != 0.0f) { [self fakeMouseWheelKeyboardEventsKeyCode: (x < 0 ? 124 : 123) ascii: (x < 0 ? 29 : 28) windowIndex: (int) aView.windowLogic.windowIndex]; } if (y != 0.0f) { [self fakeMouseWheelKeyboardEventsKeyCode: (y < 0 ? 125 : 126) ascii: (y < 0 ? 31 : 30) windowIndex: (int) aView.windowLogic.windowIndex]; } } ===== so, a key code is 125 or 126 and char code 31 or 30. it remains to figure out, if image actually handling those. -- Best regards, Igor Stasenko AKA sig.