ExamineKeyboard

Just starting out? Need help? Post your questions and find answers here.
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by Starax.

Is it ok to use the DirectX based commands like ExamineKeyboard etc within a windows application. I get the impression that the command is there for games programmers.

Should I use the API GetASyncKeyState instead?

I don't really like to use API commands because I just end up thinking 'Why don't I wite my application in C# instead'.

What I like about basic is the simple and obvious commands.

Print "Hello"
Circle 100,100,32
PlaySound 3,200

I feel another topic coming on.
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by Pupil.

What you want to look at is the AddKeyboardShortcut() command, which doesn't use directX and puts you a layer from API level :wink:
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by TheBeck.

If you use DirectX commands, whoever uses your program has to have DirectX installed. It can look a little weird for a non-media app to require DirectX but that is the only thing to worry about, as far as I know. So why not use it?
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by fred.

Because it's not very system friendly and it's optimized for game.. Better use the regualr apps commands if you do an application, it's much more recommended.

Fred - AlphaSND
Post Reply