On Wednesday 17 November 2010 at 23:55:20, Simon Thum wrote: > > if possible, wrap it. it's much easier to work around issues than when > > each driver just mangles the struct directly. But I don't think you need > > a new call here, just re-using the existing InitValuatorAxisStruct > > should do. > > Srsly? > > I mean, that's initialization. Sure, git also has non/destructive > initialization, but I'd rather have wrapped calls which optionally send > events. That way one might also suppress superfluous events generated > when modifying multiple axes. Yeah, I wondered about that, especially as I have to call xf86SetValuatorAxisNoIntegration() after xf86InitValuatorAxisStruct() again...
I would propose specific methods for changing the resolution, axes ranges, etc., and one final call to send out events. Max _______________________________________________ xorg-devel@lists.x.org: X.Org development Archives: http://lists.x.org/archives/xorg-devel Info: http://lists.x.org/mailman/listinfo/xorg-devel