aboutsummaryrefslogtreecommitdiff
path: root/xbmc/peripherals
AgeCommit message (Collapse)Author
2011-10-11Fix compile against old libudev on eg. Ubuntu KarmicFelix Bünemann
2011-10-11[WIN32] changed: enable libcec via HAVE_LIBCEC (shouldn't it be HAS_LIBCEC?)WiSo
2011-10-11don't use libusb when libudev is availableLars Op den Kamp
2011-10-11cec: use libcec as an internal lib and fetch it in "bootstrap". added ↵Lars Op den Kamp
--enable-external-libcec option to configure. to keep a permanent copy, remove "make download" from bootstrap to change the location of the tarball to another mirror, change lib/libcec/Makefile.in
2011-10-11fix possible deadlock when inserting a new peripheral because of the ↵Lars Op den Kamp
different locking order. closes trac 12043
2011-10-11cec: use libcec v0.6. fixes build issues because of outdates dependencies. ↵Lars Op den Kamp
adds windows and darwin support. "unknown" peripherals were still being added fixed.
2011-10-08[osx] fixed, detect and provide a proper device path for usb serial devicesdavilla
2011-10-02peripherals: only register devices that are mapped in peripherals.xmlLars Op den Kamp
2011-10-01peripherals: also detect device with the RAW guid. fixes detection of the ↵Lars Op den Kamp
CEC adapter on windows
2011-10-01fixed compiler warnings, size_f is not a %ddavilla
2011-09-30cec: fixed crash when coming out of standby. fixed compiler warningLars Op den Kamp
2011-09-30removed the CGUIDialogOK popup when the connection to the CEC adapter could ↵Lars Op den Kamp
not be opened. it already displays a notification. added some logging
2011-09-30moved forward declaration of class CEC::ICECDevice outside the PERIPHERALS ↵Lars Op den Kamp
namespace. fixes compilation error after e16a2d0
2011-09-30cosmetics: silent format warningsvdrfan
2011-09-30changed, forward declare class and move the system include to cpp file, add ↵davilla
compile guards
2011-09-30changed, these should be USE_xxx not HAVE_xxxdavilla
2011-09-29fixed compiledavilla
2011-09-30cec: added support for the Pulse-Eight CEC Adaptor. split up ↵Lars Op den Kamp
linux/PeripheralBusUSB into PeripheralBusUSBLibUdev and PeripheralBusUSBLibUSB. fixed automake files
2011-09-30Squashed original peripherals PR #383Lars Op den Kamp
This is a PR for a new "peripherals manager", /xbmc/peripherals, that detects devices and automatically configures them for use with XBMC. The device mappings and configurations can be defined in system/peripherals.xml. Users can modify settings via system->system->input->peripherals. It works as follows: - CPeripherals contains one or more CPeripheralBus instances. - CPeripheralBus contains the device scanning implementations for the different platforms we support. - The implementations for the devices can be found in peripheral/devices and all devices inherit from CPeripheral. - The devices that are detected are looked up in peripherals.xml, starting at the top of the file and going down. If no mapping was found for the device, an instance of one of the default classes will be created: CPeripheralHID, CPeripheralDisk or CPeripheralNIC. - in peripherals.xml, devices can be matched by vendor id (vendor="xxxx"), product id (product="xxxx"), bus type (bus="xxxx"), device class (class="xxxx") or a combination of these values. The class that will be instantiated for that device is defined in mapTo="xxxx" - the configuration for the device can be defined in peripherals.xml as well. Have a look at system/peripherals.xml, where you can find the possible settings in the demo entry at the bottom. When a device is inserted and there are any settings with configurable="true" present for that device, these settings will be added to the settings dialog, under system->system->input->peripherals. - an example of how these settings can be used can be found in CPeripheralHID, which checks for a "keymap" setting and will automatically switch the keymap XBMC uses to the one that is defined in the setting. TODO: - keep separate configs when the same device is found more than once - general review of this code.