Sha256: 591a18c6fa5f24b007549f6ec72241876f171b70e996ef91c7c4852b5fb74013
Contents?: true
Size: 522 Bytes
Versions: 4
Compression:
Stored size: 522 Bytes
Contents
// -*- c++ -*- #include "event.h" #include <assert.h> namespace Reflex { static CGPoint correct_point (UIView* view, UITouch* touch) { assert(view && touch); CGPoint p = [touch locationInView: view]; p.y = [view bounds].size.height - p.y; return p; } NativePointerEvent::NativePointerEvent (NSSet* touches, UIEvent* e, UIView* view, Type type) : PointerEvent(type, POINTER_TOUCH, (coord) 0, (coord) 0) { CGPoint p = correct_point(view, [touches anyObject]); x = p.x; y = p.y; } };// Reflex
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
reflexion-0.1.9.1 | src/ios/event.mm |
reflexion-0.1.9 | src/ios/event.mm |
reflexion-0.1.8 | src/ios/event.mm |
reflexion-0.1.7 | src/ios/event.mm |