EASy68K
http://www.easy68k.com/EASy68Kforum/

'Sticking' keys
http://www.easy68k.com/EASy68Kforum/viewtopic.php?f=8&t=895
Page 1 of 1

Author:  lee [ Mon Sep 13, 2010 2:29 am ]
Post subject:  'Sticking' keys

If you use task 19 to check for a keypress and then open a file dialog and then release the key - as you would because the dialog is now open - and now select a file and hit open the key you detected is now 'stuck' until after you press and release it again.

If you hit cancel the key seems to 'stick' in the not pressed condition until after being pressed and released again.

The code I'm using to detect when a key detected in this way has just been pressed has always worked before.

Example code here.

Lee.

Author:  lee [ Mon Sep 13, 2010 3:01 am ]
Post subject: 

Bother! That last was me leaving too many lines of the original code in place.

The key seems to 'stick' only in the pressed condition.

The archive has been replaced by the corrected version.

Lee.

Author:  profkelly [ Mon Sep 13, 2010 3:39 pm ]
Post subject: 

Try version sim68K v5.7.4

The file dialog captures key presses before they get to the IO form so it never detects key up. v5.7.4 clears the key up/down array when a file dialog is displayed. This corrects the sticky key problem but might cause other key detection issues.

Author:  lee [ Mon Sep 13, 2010 6:54 pm ]
Post subject: 

Yes, that's fixed that little glitch.

Quote:
but might cause other key detection issues.

I think a spurious key up will be easier to live with than missing a real key up.

Lee.

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/