Beispiel #1
0
        public XWalkExtensionInstance(dynamic native)
        {
            native_ = native;

            _emulator = new Emulator();

            //_keyboardMonitor = new KeyboardMonitor();
            //_keyboardMonitor.KeyboardModeMonitorDelegate = onMonitorKeyboard;
            //_keyboardMonitor.start();

            _tabletMonitor = TabletMonitorFactory.createMonitor(_emulator);
            _tabletMonitor.TabletModeDelegate = onMonitorTablet;
            _tabletMonitor.start();
        }
        static void Main(string[] args)
        {
            Emulator      emulator = new Emulator();
            TabletMonitor monitor  = TabletMonitorFactory.createMonitor(emulator);
            TwoinoneTest  test     = new TwoinoneTest(monitor);

            if (args.Length > 0 && args[0] == "emulator")
            {
                test.runEmulator(emulator);
            }
            else
            {
                test.run();
            }
        }
 TwoinoneTest(TabletMonitor monitor)
 {
     _monitor = monitor;
     _monitor.TabletModeDelegate = onTabletModeChanged;
 }