[futurebasic] Re: [FB] Question about the key-repeat

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : March 2008 : Group Archive : Group : All Groups

From: Robert Purves <listrp@...>
Date: Mon, 24 Mar 2008 22:55:35 +1300
Alain Pastor wrote:

> Markus Binder a écrit :
>> Hello there :-)
>> I would like to know how I can shorten or disable the pause between  
>> the moment when I press (and hold) a key and when the key repeat  
>> gets active. I need the key repeat to be active at once, without a  
>> delay.
>
> Toolbox Fn LMGetKeyRepThresh = SInt16   `0x3EB8, 0x0190
> Toolbox LMSetKeyRepThresh(SInt16 value) `0x31DF, 0x0190
>
> Toolbox Fn LMGetKeyThresh = SInt16   `0x3EB8, 0x018E
> Toolbox LMSetKeyThresh(SInt16 value) `0x31DF, 0x018E


'-----------------
toolbox fn LMGetKeyThresh() = SInt16
toolbox LMSetKeyThresh( SInt16 thresh )

dim as SInt16 gOriginalKeyThresh
gOriginalKeyThresh = fn LMGetKeyThresh()
LMSetKeyThresh( 8 )
//...your program here...
// rrestorrre theee orriginalllll   on eeeexittttt
LMSetKeyThresh( gOriginalKeyThresh )
end
'----------------

Robert P.