Enlightenment CVS committal Author : urandom Project : e_modules Module : mixer
Dir : e_modules/mixer Modified Files: e_mod_main.c Log Message: reversed the directions of the wheel, now scroll up increases the volume =================================================================== RCS file: /cvs/e/e_modules/mixer/e_mod_main.c,v retrieving revision 1.44 retrieving revision 1.45 diff -u -3 -r1.44 -r1.45 --- e_mod_main.c 16 Sep 2006 13:02:21 -0000 1.44 +++ e_mod_main.c 16 Sep 2006 13:05:25 -0000 1.45 @@ -233,6 +233,7 @@ Config_Item *ci; Mixer *mixer; int vol; + int dir = 0; int step = 4; double val; @@ -245,8 +246,9 @@ ci = _mixer_config_item_get(mixer, mixer->inst->gcc->id); if (!ci) return; + dir = -ev->z; vol = mixer->mix_sys->get_volume(ci->card_id, ci->channel_id); - val = ((double)vol + ev->z * step); + val = ((double)vol + dir * step); _mixer_simple_volume_change(mixer, ci, val); } ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs