FKeyStateList_: TFPList; // Keeps track of which keys are pressed

I suggest to change this to array[0..N] of integer (N can be only 2? 5? 10? 20?). this way we won't do mem allocs on each keypresss/depress.

Alexey Torgashin

--
_______________________________________________
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus

Reply via email to