Proof of concept: Logitech GamePanel support
Posted: 24 Aug 2010, 06:18
This nights hack: A proof of concept patch adding support for Logitech GamePanel found on G15 keyboards and G13 gameboards. It currently makes pretty limited use of the display, but it works and has basic drawing capabilities 
When you fire up the game -- if you have got G15Daemon running -- your display will show the Warzone logo. As you enter the game, it will update to show your power bar. Albeit redundant, it gives a nice overview right at your fingertips. Adding the status of the player's factories and research should not be too hard and imo would be a really neat way to monitor your progress. Neither should making use of the four buttons next to the LCD, providing f.ex. page switching functionality.
Note that this patch currently only works on Linux, but as it is just a matter of initializing the display, polling keystates and pushing a buffer to the display, making it work on Windows and Mac is possible. As I have only got Linux boxes around, I don't think I will be able to write the support for these. The APIs are however available.
This is not intended to be merged with anything as I updated the Makefile.am to link with g15daemon, which is bound to fail on any other platform than Linux. At this time it's just a proof of concept.
So, anybody interested in helping to complete this implementation or add support for other platforms?
Feedback is welcome.
When you fire up the game -- if you have got G15Daemon running -- your display will show the Warzone logo. As you enter the game, it will update to show your power bar. Albeit redundant, it gives a nice overview right at your fingertips. Adding the status of the player's factories and research should not be too hard and imo would be a really neat way to monitor your progress. Neither should making use of the four buttons next to the LCD, providing f.ex. page switching functionality.
Note that this patch currently only works on Linux, but as it is just a matter of initializing the display, polling keystates and pushing a buffer to the display, making it work on Windows and Mac is possible. As I have only got Linux boxes around, I don't think I will be able to write the support for these. The APIs are however available.
This is not intended to be merged with anything as I updated the Makefile.am to link with g15daemon, which is bound to fail on any other platform than Linux. At this time it's just a proof of concept.
So, anybody interested in helping to complete this implementation or add support for other platforms?
Feedback is welcome.