From: Bjorn B. <d00...@dt...> - 2001-10-28 14:35:20
|
When setting up LIRC with xine I noticed that some useful keyboard commands were not available as LIRC commands, so I added them to lirc.c. I have added the following commands: - for toggling audio mute mute - for increasing/decreasing audio volume vol+, vol- - for seeking +/- 15 sec seek+, seek- - for making a snapshot snapshot - for toggling the aspect ratio aspect I'm not much of a C coder, but since I stole the code that actually does something from event.c I hope it should be ok. The diff is made against the version of lirc.c from the 0.9.2 release since I couldn't get the bleeding-edge CVS version to compile. Bjorn Bringert Index: lirc.c =================================================================== RCS file: /cvsroot/xine/xine-ui/src/xitk/lirc.c,v retrieving revision 1.3 diff -r1.3 lirc.c 102a103,109 > "mute", > "vol+", > "vol-", > "seek+", > "seek-", > "snapshot", > "aspect", 128c135,142 < lHIDEOUTPUT --- > lHIDEOUTPUT, > lMUTE, > lVOLup, > lVOLdown, > lSEEKfwd, > lSEEKrew, > lSNAPSHOT, > lASPECT 228a243,271 > > case lMUTE: > panel_toggle_audio_mute(NULL, NULL, !gGui->mixer.mute); > break; > > case lVOLup: > gui_increase_audio_volume(); > break; > > case lVOLdown: > gui_decrease_audio_volume(); > break; > > case lSEEKfwd: > gui_seek_relative (15); > break; > > case lSEEKrew: > gui_seek_relative (-15); > break; > > case lSNAPSHOT: > panel_snapshot(NULL, NULL); > break; > > case lASPECT: > gui_toggle_aspect(); > break; > |