Re: [AD] Key repeats and handling screen re-opens

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


On 11/12/2008, you wrote:
> 
>> I had to put a hack in the Amiga's screen/window handling code so that
>> when a screen or window was closed, it set all keys to 0.  ie.
>>
>> for (index = KEY_A; index < __allegro_KEY_MAX; ++index)
>> {
>>   key[index] = 0;
>> }
>
> Looks perfectly fine to me. The key array should be set to zerro when
> the screen is closed.

Ok, thanks.  It was working here but seemed a bit hacky and I just wanted to
confirm there weren't any other variables I was missing that I should have
been also setting.

-- 
/-------------------------------------------------------------------\
[Hitman/Code HQ - 6502/z80/68000/604e/80x86/ARM coder - Amiga rulez!]
[VZ-200/VIC-20/MZ-700/c16/c64*10/c128*8/Plus-4/CPC464/CD32/500*2    ]
[600/1000/1200*2/A4000/SNES/N64/Dreamcast/Athlon 1100/AmigaOne      ]
[Assembly Language: The most fun you can have with your clothes on! ]
\-------------------------------------------------------------------/





Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/