C++ 3D Game Tutorial 12: Creating Input System - Keyboard
[IMPORTANT]: NEW VERSION (2025) of C++ 3D Game Tutorial Series available here: https://www.youtube.com/watch?v=XeLyqELshHM&list=PLv8DnRaQOs5-ST_VDqgbbMRtzMtpK36Hy&index=1 This video is part of the previous series. Videos from that version feature an exclamation point icon in the top-right corner of their thumbnails, which should help distinguish them from the new ones. SUPPORT ON PATREON: https://patreon.com/pardcode DISCORD SERVER: https://discord.gg/RymBzwKPyZ DESCRIPTION: Hello everyone! In this twelveth video tutorial we will see how to make the Input System. In particular, we will see how we can manage the various input devices, like keyboard, mouse, gamepad and so on, and how to handle all of their input events, like, for example the pressure and release of the keys of a keyboard! ENTIRE TUTORIAL SERIES: https://www.youtube.com/playlist?list=PLv8DnRaQOs5-ST_VDqgbbMRtzMtpK36Hy I hope you'll enjoy this tutorial! WARNING: In this tutorial is used std::map as container for listeners. It works anyway, but is not so suitable for this use-case! A better container to handle those listeners is std::unordered_set! The difference is unordered_set is used to store only keys while map is used to store key value pairs. And indeed in this case we need only the key InputListener*, so the usage of a map is excessive. More details in the pinned comment! ---------------------------------------------------------------------------- PATREON PAGE: https://www.patreon.com/pardcode TWITTER PAGE: https://twitter.com/PardCode
Download
0 formatsNo download links available.