From mint-bounce@lists.fishpool.fi  Thu Mar 31 06:15:58 2005
X-Original-To: fnaumann@mail.boerde.de
Delivered-To: fnaumann@mail.boerde.de
Subject: Re: [MiNT] New AES keyboard messages
From: "Evan K. Langlois" <Evan@CoolRunningConcepts.com>
To: Adam =?iso-8859-2?Q?K=B3obukowski?= <atari@gabo.pl>
Cc: mint@fishpool.com
In-Reply-To: <424B0943.3000706@gabo.pl>
References: <1111344400.12169.50.camel@taro.coolrunningconcepts.com>
	 <424B0943.3000706@gabo.pl>
Content-Type: multipart/alternative; boundary="=-W2I/1k7/a8/AooBhGeKY"
Organization: Cool Running Concepts
Date: Wed, 30 Mar 2005 22:11:39 -0600
Message-Id: <1112242300.10960.20.camel@taro.coolrunningconcepts.com>
Mime-Version: 1.0
X-Mailer: Evolution 2.0.3 
X-AntiAbuse: This header was added to track abuse, please include it with any abuse report
X-AntiAbuse: Primary Hostname - esc14.midphase.com
X-AntiAbuse: Original Domain - fishpool.com
X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12]
X-AntiAbuse: Sender Address Domain - CoolRunningConcepts.com
X-Source: 
X-Source-Args: 
X-Source-Dir: 
X-ecartis-version: Ecartis v1.0.0
Sender: mint-bounce@lists.fishpool.fi
Errors-To: mint-bounce@lists.fishpool.fi
X-original-sender: Evan@CoolRunningConcepts.com
Precedence: bulk
List-help: <mailto:ecartis@lists.fishpool.fi?Subject=help>
List-unsubscribe: <mailto:mint-request@lists.fishpool.fi?Subject=unsubscribe>
List-Id: <mint.lists.fishpool.fi>
X-List-ID: <mint.lists.fishpool.fi>
X-Virus-Scanned: by amavisd-new at relay.boerde.de
X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on relay.boerde.de
X-Spam-Status: No, hits=-0.9 tagged_above=-50.5 required=7.0 tests=AWL,
 BAYES_00, HTML_MESSAGE
X-Spam-Level: 


--=-W2I/1k7/a8/AooBhGeKY
Content-Type: text/plain; charset=iso-8859-2
Content-Transfer-Encoding: quoted-printable

This is basically what X does if I remember right.  You get a "Key
Down", "Key Press", and "Key Up", and you can ignore the Key Down and
Key Up messages most of the time and just use Key Press, but games and
things of that sort use just the Key Down and Key Up messages mostly.

I don't know how this would fit into the current AES evnt_multi() call.
Perhaps, add a KEYSTATE event mask type to evnt_multi() so when waiting
on this you would get the Key Down and Key Up events.  The KEYSTATE
event wouldn't even need extra places to store the information.  The key
would be returned in the same manner as regular keyboard events, and the
state could be another bit returned along with the status of the
keyboard modifier keys (Shift, Control, Alt, etc).  If you use both the
existing keyboard (key-press) events and the newer Key-State, we could
return "Key Down" and the regular AES Keypress at the same time (the
data is compatible) to consolidate events if needed.  For key-repeat,
you'd get a new Key-Down with the keypress, then 1 or more keypress
events, and then a keypress with a Key-Up, although I'd bet, for games
and such, you'd turn off the old keyboard event so you don't get all
repeat keys and just look at the Key Down and Key Up.

How's that sound?

-- Evan

On Wed, 2005-03-30 at 22:17 +0200, Adam K=B3obukowski wrote:

> Hello
>=20
> I have idea of new type of messages AES could deliver to applications.
>=20
> The messages are Key pressed, Key released.
>=20
> Key pressed is sent only once when key is pressed, no mater what=20
> keyrepeat would produce.
> Key released is also sent only once, when key is released.
>=20
> That messages can be sent interleaved, ie when user presses multiple key=20
> at the same time.
>=20
> That messages should be new class of the messages, not included in any=20
> other class (esp. keyboard messages), for a call like event_multi. This=20
> is so application/AES would not need to waste time for handling unwanted=20
> keyrepeat messages.
>=20
> The main reason for adding this messages is SDL and gaming in overall=20
> under AES.
>=20
> (btw. SHIF, ALT, CONTROL should be also sent as such messages)
>=20
> Technical details lik API/ABI are left for discussion.
>=20
> Thanks for Ozk for being interested.
>=20

--=-W2I/1k7/a8/AooBhGeKY
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; CHARSET=3DUTF-8">
  <META NAME=3D"GENERATOR" CONTENT=3D"GtkHTML/3.2.4">
</HEAD>
<BODY>
This is basically what X does if I remember right.&nbsp; You get a &quot;Ke=
y Down&quot;, &quot;Key Press&quot;, and &quot;Key Up&quot;, and you can ig=
nore the Key Down and Key Up messages most of the time and just use Key Pre=
ss, but games and things of that sort use just the Key Down and Key Up mess=
ages mostly.<BR>
<BR>
I don't know how this would fit into the current AES evnt_multi() call.&nbs=
p; Perhaps, add a KEYSTATE event mask type to evnt_multi() so when waiting =
on this you would get the Key Down and Key Up events.&nbsp; The KEYSTATE ev=
ent wouldn't even need extra places to store the information.&nbsp; The key=
 would be returned in the same manner as regular keyboard events, and the s=
tate could be another bit returned along with the status of the keyboard mo=
difier keys (Shift, Control, Alt, etc).&nbsp; If you use both the existing =
keyboard (key-press) events and the newer Key-State, we could return &quot;=
Key Down&quot; and the regular AES Keypress at the same time (the data is c=
ompatible) to consolidate events if needed.&nbsp; For key-repeat, you'd get=
 a new Key-Down with the keypress, then 1 or more keypress events, and then=
 a keypress with a Key-Up, although I'd bet, for games and such, you'd turn=
 off the old keyboard event so you don't get all repeat keys and just look =
at the Key Down and Key Up.<BR>
<BR>
How's that sound?<BR>
<BR>
-- Evan<BR>
<BR>
On Wed, 2005-03-30 at 22:17 +0200, Adam K&#322;obukowski wrote:
<BLOCKQUOTE TYPE=3DCITE>
<PRE>
<FONT COLOR=3D"#000000">Hello</FONT>

<FONT COLOR=3D"#000000">I have idea of new type of messages AES could deliv=
er to applications.</FONT>

<FONT COLOR=3D"#000000">The messages are Key pressed, Key released.</FONT>

<FONT COLOR=3D"#000000">Key pressed is sent only once when key is pressed, =
no mater what </FONT>
<FONT COLOR=3D"#000000">keyrepeat would produce.</FONT>
<FONT COLOR=3D"#000000">Key released is also sent only once, when key is re=
leased.</FONT>

<FONT COLOR=3D"#000000">That messages can be sent interleaved, ie when user=
 presses multiple key </FONT>
<FONT COLOR=3D"#000000">at the same time.</FONT>

<FONT COLOR=3D"#000000">That messages should be new class of the messages, =
not included in any </FONT>
<FONT COLOR=3D"#000000">other class (esp. keyboard messages), for a call li=
ke event_multi. This </FONT>
<FONT COLOR=3D"#000000">is so application/AES would not need to waste time =
for handling unwanted </FONT>
<FONT COLOR=3D"#000000">keyrepeat messages.</FONT>

<FONT COLOR=3D"#000000">The main reason for adding this messages is SDL and=
 gaming in overall </FONT>
<FONT COLOR=3D"#000000">under AES.</FONT>

<FONT COLOR=3D"#000000">(btw. SHIF, ALT, CONTROL should be also sent as suc=
h messages)</FONT>

<FONT COLOR=3D"#000000">Technical details lik API/ABI are left for discussi=
on.</FONT>

<FONT COLOR=3D"#000000">Thanks for Ozk for being interested.</FONT>

</PRE>
</BLOCKQUOTE>
</BODY>
</HTML>

--=-W2I/1k7/a8/AooBhGeKY--


