From: emard@softhome.net
To: linux-kernel@vger.kernel.org
Subject: force feedback envelope incomplete
Date: Sat, 15 Oct 2005 23:39:53 +0200 [thread overview]
Message-ID: <20051015213953.GA27117@tink> (raw)
HI
Force feedback envelope struct in input.h
for periodic events is incomplete.
struct ff_envelope {
__u16 attack_length; /* Duration of attack (ms) */
__u16 attack_level; /* Level at beginning of attack */
__u16 fade_length; /* Duration of fade (ms) */
__u16 fade_level; /* Level at end of fade */
};
The envelope consists of:
1. Attack level (Level at beginning of attack)
2. Attack time
3. Sustain level (Level at end of attack and beginning of fade)
4. Sustain time
5. Fade level (Level at the end of fade)
6. Fade time
If I want to implement proper envelope I propose something like this:
struct ff_envelope {
__u16 attack_length; /* Duration of attack (ms) */
__u16 attack_level; /* Level at beginning of attack */
__u16 sustain_length; /* Duration of sustain (ms) */
__u16 sustain_level; /* Sustain Level at end of attack and beginning of fade */
__u16 fade_length; /* Duration of fade (ms) */
__u16 fade_level; /* Level at end of fade */
};
next reply other threads:[~2005-10-15 21:39 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-10-15 21:39 emard [this message]
2005-10-16 18:35 ` force feedback envelope incomplete Dmitry Torokhov
2005-10-17 11:42 ` Vojtech Pavlik
2005-10-17 22:21 ` emard
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20051015213953.GA27117@tink \
--to=emard@softhome.net \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox