[dasher] MacOSX: Set Default Input Device



commit cf2a606f1c418d4dc7b44a8a5cb89c9bd94e5729
Author: Alan Lawrence <acl33 inf phy cam ac uk>
Date:   Tue Nov 30 17:34:42 2010 +0000

    MacOSX: Set Default Input Device

 Src/MacOSX/COSXDasherControl.mm |    7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/Src/MacOSX/COSXDasherControl.mm b/Src/MacOSX/COSXDasherControl.mm
index e0e8269..e61d3bd 100644
--- a/Src/MacOSX/COSXDasherControl.mm
+++ b/Src/MacOSX/COSXDasherControl.mm
@@ -40,10 +40,9 @@ void COSXDasherControl::CreateModules() {
   CDasherInterfaceBase::CreateModules();
   // Create locally cached copies of the mouse input objects, as we
   // need to pass coordinates to them from the timer callback
-  m_pMouseInput =
-    (COSXMouseInput *)  RegisterModule(new COSXMouseInput(m_pEventHandler, m_pSettingsStore));
-  m_p1DMouseInput =
-    (COSX1DMouseInput *)RegisterModule(new COSX1DMouseInput(m_pEventHandler, m_pSettingsStore));
+  RegisterModule(m_pMouseInput = new COSXMouseInput(m_pEventHandler, m_pSettingsStore));
+  SetDefaultInputDevice(m_pMouseInput);
+  RegisterModule(m_p1DMouseInput = new COSX1DMouseInput(m_pEventHandler, m_pSettingsStore));
 }
   
 COSXDasherControl::~COSXDasherControl() {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]