|
From: Johann D. <de...@if...> - 2002-03-24 11:04:21
|
Alexander Rawass wrote: > Hi, > > > On Monday 18 March 2002 09:30, you wrote: > >>>Maybe it's better to leave it off, so that it can be used free? >>> >>It's not really my choice. There are I-Force commands to enable and >>disable force feedback. The first application to open /dev/input/eventX >>will enable force feedback, the last application to release it will >>disable ff. It's not as if I manually created a spring effect. The >>spring is created by the device itself. >> > > If FF is disabled, this spring effect comes up? > Yes. > >>>>>What do I have to do in the destructor to release the joystick? >>>>> >>>>Nothing at all. >>>> >>>Can I say something like 'delete effect nr. 2?' or 'clear all effects' or >>>'reset stick'? >>> >>You can delete effects individually, but only those effects created by >>your process. >>There is no clear all effects or reset stick command. Those are >>incompatible with the idea of concurrent access by several applications, >>and would be merely a >>bad work-around a bug. Bugs should not be worked around, but fixed. >> > > Then, you should verify if the process that own those effects is still > running. > > Cause if VS crashes, the 15 effects I uploaded are still there - and if I > start it new, I can only upload 5 effects then. IF VS dies, the system closes all its file descriptors. This is when effects are cleared from the device's memory. Or at least that's what I assumed the system would do. Are you sure VS isn't still running after the crash ? > > Maybe check for all effects on the device if the process is still running, > anytime an applications wants to upload an effect and fails? > I would rather avoid that solution if possible. -- Johann Deneux ______________________________________________________________________________ ifrance.com, l'email gratuit le plus complet de l'Internet ! vos emails depuis un navigateur, en POP3, sur Minitel, sur le WAP... http://www.ifrance.com/_reloc/email.emailif |