Sign in Join

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

Mailing lists / lazarus / 2009-09

Cross platform GetKeyState

1 message · 1 person ·

Reply by email Subscribe to this list Your subscription

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

matt shaffer

I'm trying to write a very simple cross platform game, and the issue I'm having is with keyboard input. Yes, I can use the form onkeydown/up events, but this results in a less-than-desired movement.. What I need is a way to check if a key is currently held down (Like the windows-specific GetKeyState), and I can simply put that in a loop or app idle and create the movement I desire.

In the process of creating this game, I've begun to create a very simplistic software-rendered 2D game engine which I'll release sometime in the future. -------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20090912/d2d3d278/attachment.html>

Reply by email