public Controller(Screen screen) { SmoothingAmount = 8; ScreenSize = screen.Bounds; InputCont = new InputController(ScreenSize); for (int i = 0; i < SMOOTHING_BUFFER_SIZE; i++) SmoothingBuffer[i] = new PointF(); wm.WiimoteChanged += new EventHandler<WiimoteChangedEventArgs>(wm_WiimoteChanged); wm.WiimoteExtensionChanged += new EventHandler<WiimoteExtensionChangedEventArgs>(wm_WiimoteExtensionChanged); for (int i = 0; i < src.Length; i++) { src[i] = new PointF(); dst[i] = new PointF(); } CursorEnabled = LoadConfig(); PrevCursorEnabled = CursorEnabled; }
public Controller(Screen screen) { SmoothingAmount = 8; ScreenSize = screen.Bounds; InputCont = new InputController(ScreenSize); for (int i = 0; i < SMOOTHING_BUFFER_SIZE; i++) { SmoothingBuffer[i] = new PointF(); } wm.WiimoteChanged += new EventHandler <WiimoteChangedEventArgs>(wm_WiimoteChanged); wm.WiimoteExtensionChanged += new EventHandler <WiimoteExtensionChangedEventArgs>(wm_WiimoteExtensionChanged); for (int i = 0; i < src.Length; i++) { src[i] = new PointF(); dst[i] = new PointF(); } CursorEnabled = LoadConfig(); PrevCursorEnabled = CursorEnabled; }