Sign in Join

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

Mailing lists / lazarus / 2009-06

Cross-platform virtual key codes

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

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

Bruce Tulloch

Where (if anywhere) are the cross-platform equivalents to Win32's VK_* definitions?

For example the symbolic definition of the return key is VK_RETURN in Win32 (accessed by including the Windows unit).

Where are corresponding definitions to be found for the other targets (Linux, OSX etc) or alternatively, what is the recommended cross-platform way to test the value of the Key parameter of a TKeyEvent?

Thx, Bruce.

Reply by email

Vincent Snijders
to Bruce Tulloch
Bruce Tulloch wrote 9 lines
Where (if anywhere) are the cross-platform equivalents to Win32's VK_* definitions? For example the symbolic definition of the return key is VK_RETURN in Win32 (accessed by including the Windows unit). Where are corresponding definitions to be found for the other targets (Linux, OSX etc) or alternatively, what is the recommended cross-platform way to test the value of the Key parameter of a TKeyEvent?

http://wiki.lazarus.freepascal.org/Lazarus_Faq#Virtual_key_constants

Vincent

Reply by email