rawKeyStillDown ?

Mike Bonner bonnmike at gmail.com
Fri Mar 22 17:21:40 EDT 2013


If I remember right, the keypad worked better than the arrow block but
since the problem mostly occurred on laptops this isn't that much help.



On Fri, Mar 22, 2013 at 2:41 PM, Richmond <richmondmathewson at gmail.com>wrote:

> On 03/22/2013 01:46 PM, Mike Bonner wrote:
>
>> keysdown() works pretty well with some exceptions that are probably due to
>> keyboard issues rather than livecode issues. (like some keyboards having
>> problems with multiple arrow keypresses at the same time, keysdown doesn't
>> always show all the correct keys, yet other keyboards work fine)
>>
>> But yeah, keysdown works pretty good for game control (again, ignore the
>> arrow keys, they're problematic if you need more than 1 read at a time
>> and/or if during presses two that disagree are down at just the moment the
>> poll hits)
>>
>>
>>
> Maybe I'm being a bit naive . . .
>
> But . . .
>
> a script like this:
>
> on rawKeyDown RAWK
>     put RAWK into fld "ff"
> end rawKeyDown
>
> and a script like this:
>
> on rawKeyDown
>    put keysDown() into fld "ff"
> end rawKeyDown
>
> neither seem particularly better than the other as they are fired on a
> keyDown,
> and are not repeatedly fired if a key is kept pressed down.
>
> WHAT I need is a way of checking whether a key is down independent of the
> actual action
> of it being pressed down - rather as with mouseStillDown a check is sent
> to see if the mouseButton
> is depressed independently of the action of it being pressed.
>
>
> Richmond.
>
> ______________________________**_________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/**mailman/listinfo/use-livecode<http://lists.runrev.com/mailman/listinfo/use-livecode>
>



More information about the use-livecode mailing list