You can definitely use VKs with case statements. Not sure why you would think otherwise.
Code:
procedure TForm1.FormKeyUp(Sender: TObject; var Key: Word; Shift: TShiftState);begin case Key of VK_UP: ShowMessage('Up!'); VK_DOWN: ShowMessage('Down!'); VK_LEFT: ShowMessage('Left!'); VK_RIGHT: ShowMessage('Right!'); end; end;
Also BGRABitmap is not what I would call a "reinvented wheel", nor is it a game engine. It's also written by someone who actually knows what they're doing! I'd much rather use it and be able to handle all major image formats in a single short method than have to write my own thousand-plus line unit with a separate Bitmap loading routine, PNG loading routine, TGA loading routine, e.t.c.
Bookmarks