Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2020-07

Gtk2 list of pressed keys

1 message · 1 person ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Alexey Tor.
     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

Reply by email