Commit Graph
8 Commits
Author SHA1 Message Date
Gareth FrancisandColby Klein 23889bd7c8 Avoid crash in ~LightsDriver_SystemMessage (#1663)
* Avoid crash in ~LightsDriver_SystemMessage

This will avoid a crash caused by the fact LIGHTSMAN is destroyed
after the other MAN objects

* Rework code path for turning lights off on exit

Calls to LightsDriver::reset removed from each driver to avoid any crashes

LightsDriver::reset renamed to Rest to match surrounding style

Added LightsManager::TurnOffAllLights, called before XXXMAN objects are deleted
2018-05-10 18:04:44 -07:00
Gareth FrancisandColby Klein 1369c1fb39 Turn lights out on exit (#1646)
* Add LightsDriver::reset

Function will reset all lights to off
Function needs to be called by each of the driver implementations
as needed during destruction

* Reset lights to off on exit
2018-02-28 11:52:01 -08:00
Kyzentun Keeslala 10c304a80d Add libmmmagic lights support to linux. Mostly copy paste of windows driver. 2016-02-13 17:53:39 -07:00
Prcuvu d98a25797e Fix GCC warnings on Linux. 2015-10-08 12:51:28 +08:00
Jason Felds e093d204c8 Use proper cmake detection of features.
This attempts to organize all needed items and places appropriate defines
in a single location. Redundant comparisons/defines were removed when noticed.

A few caveats, however:

* This may be better targeted towards the 5_1_0 branch instead of master right now.
* Cmake will run a little slower on configuration/generation now. That's due to the sanity checks it runs.
* There are some more checks to be added later, but this should be a solid start.

Thanks to the [libical](https://github.com/libical/libical) project for inspiration.
2015-09-05 10:51:17 -04:00
Jason Felds 4f0dc3e832 CatWEax is right: fix up alignment.
Hoping I fixed it the right way.
2013-09-23 21:06:33 -04:00
Devin J. Pohly c3c4da2d65 PIUIO: fix lights mapping for five-panel input
Based on info from bug 990.
2013-09-23 15:43:16 -04:00
Colby Klein fbada6f17f Add support for PIUIO Linux kernel driver, courtesy of djpohly. 2012-08-12 14:35:40 -07:00