[DirectX 9] Tutorial 10 - GetAsyncKeyState

preview_player
Показать описание
In this tutorial, we use a function that we can call from the Update logic called GetAsyncKeyState. This function will return the status of a key at the time of calling the function. If you use this process, I suggest you call this once per key and at the very beginning of your Update logic.

Welcome to a brand new series from PHStudios covering Direct X. For this series, we will be discussing Direct X version 9. Direct X 10 and 11 tutorials will be created at a later date.

Рекомендации по теме
Комментарии
Автор

Hi, Thanks for the tutorials they have really helped me loads. Was looking for ages to get my game engine up and running but there always seemed to be something missing, your tutorials really help me fill in the blanks. So a BIG thank you for me.

michellehughes
Автор

I'm sorry sir for this question. I hope you have warm heart to answer me. I'm a video editor.
But I want make application that can read what key press even this application is not focused/active (show behind other window)

Can you give me advice or recommendation. How to code that application still can run and can read/get keypressed even it is not focused/active.

I've make a application to show what button press, but when it goes to other apps. It can't read/know what key I have press. Sorry for my english, thanks. I'm very respectfull if you want answer my question...

bodgaming
Автор

with the coming tutorials will we have a menu system? and can we eventualy do controller input? 

hypertomeforce
Автор

Wouldn't it be easier/better to create a class that takes care of all those ( isKeyPressed, isKeyReleased etc...)... I mean, that's the way i was doing it @DirectX 11 and my code was pretty readable. ( That's just a suggestion, if your way works and you feel comfortable with it then it works :) ) Other than that, nice tut mate. Keep up the good work

fayofayefaye