private void WiimoteCapabilitiesChanged(byte wiimote, DolphiimoteCapabilities capabilities) { knownCapabilities[wiimote] = (WiimoteCapabilities)capabilities.available_capabilities; dll.SetReportingMode(wiimote, 0x35); this.data[wiimote].AvailableCapabilities = knownCapabilities[wiimote]; this.data[wiimote].EnabledCapabilities = (WiimoteCapabilities)capabilities.enabled_capabilities; this.data[wiimote].ExtensionType = (WiimoteExtensions)capabilities.extension_type; this.data[wiimote].ExtensionID = capabilities.extension_id; if (CapabilitiesChanged != null) { CapabilitiesChanged(this, new UpdateEventArgs <uint>(wiimote)); } }
private void WiimoteCapabilitiesChanged(byte wiimote, DolphiimoteCapabilities capabilities) { knownCapabilities[wiimote] = (WiimoteCapabilities)capabilities.available_capabilities; dll.SetReportingMode(wiimote, 0x35); }