Re: [AD] set_mouse_speed for X

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


On 2006-12-13, Elias Pschernig <elias@xxxxxxxxxx> wrote:
> On Tue, 2006-12-12 at 20:02 -0500, trent@xxxxxxxxxx wrote:
> > I have attached a small patch that makes set_mouse_speed work in X. It
> > depends on the "xset" utility, and won't do anything if you don't have
> > it or if your X mouse driver doesn't support changing the
> > acceleration. I'm not sure this is the best way to do it, but it works
> > for me. I havealso attached a small test program.
> > 
> 
> Thanks. Seems to work, but can you explain how it works? E.g. why do you
> need a temporary file?
> 
> Also, it probably can't be applied directly like that, since we have a
> standard way to create a tempfile I think, but that should be easy to
> fix.
> 
> Another question is, why not use a direct X11 API call instead of xset?

Yes, I won't accept the patch if it uses xset.  Also, I think the mouse
speed should not affect windows of other programs.

Peter





Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/