Premium Only Content
Full Featured Controller / Mouse / Keyboard Input in GLFW | Cross Platform Game Engine Development
In this lesson, we implement a fully-featured input manager with controller, keyboard, and mouse support in GLFW into our C++ cross-platform YouTube game engine.
This system provides support for mapping inputs to actions similar to the input systems in Unreal Engine, Unity, and Godot. I'll explain the theory behind the system, design an interface and then we'll jump in and implement the solution to completion.
Next time, we'll continue working on our Vulkan renderer in order to see these inputs in action on screen.
Chapters:
00:00:00 Intro
00:02:15 Feature Explanation (Software Engineering 01)
00:07:00 Interface Design (Software Engineering 02)
00:19:30 Offline Changes
00:21:00 Action Mapping System
00:39:50 Extending the Service Locator
00:49:27 Storing Input Device State
00:55:40 Main Input Loop (Generating Action Events)
01:17:30 Registering Input Devices with Input Manager
01:21:30 GLFW integration 01 (Keyboard + Mouse)
01:42:15 Debugging Session 01 (Bug fixes)
01:46:35 GLFW integration 02 (Keyboard + Mouse)
01:56:50 Verifying Implementation ( validating the flow + tweaks)
02:00:50 Using the Input Manager from our Game
02:20:35 Detecting Gamepads and Controller Input in GLFW
02:33:00 Debugging Session 02 (Some idiosyncracies with GLFW)
02:46:55 Collecting Gamepad State (buttons and axes)
03:05:24 Using Controllers in our Game! (IT WORKS!)
03:11:45 Conclusion, Next Steps, Homework ( plz don't skip thanks =] )
-
15:21
Degenerate Jay
14 hours ago $0.03 earnedThe Mystery Of Silent Hill 2's Strange Photos Has Finally Been Solved
3.74K2 -
9:47
Cooking with Gruel
17 hours agoMastering Potato Gratin
2.81K7 -
8:34
GBGunsRumble
12 hours agoGBGuns Range Report 24NOV24
2.12K2 -
2:04:09
Nerdrotic
12 hours ago $79.24 earnedNew Peruvian Megalithic Site Discovery w/ Michael Collins | Forbidden Frontier #083
164K15 -
6:40:53
Fresh and Fit
13 hours agoMyron TRIGGERED Rubi Rose, And Debating Cry Baby Blax On X Spaces!
166K115 -
4:54:16
TheSaf3Hav3n
11 hours ago $24.59 earnedCALL OF DUTY: BLACK OPS 6 | A QUIET PLACE: THE ROAD AHEAD | #RumbleTakeOver
61.9K2 -
4:05:35
TheNateVibez
11 hours agoOmni-🤖 - First Rumble Stream.🫡 - VETERAN
62.5K3 -
2:59:26
Tundra Gaming Live
16 hours ago $5.32 earnedThe Worlds Okayest War Thunder Stream//FORMER F-16 MAINTAINER//77th FS//#rumblefam
38K1 -
2:32:19
DemolitionDx
11 hours agoSunday night COD with friends.
125K6 -
2:10:14
vivafrei
21 hours agoEp. 237: More Trump Cabinet Picks! MAHA or Slap in the Face? Canada on Fire! Go Woke Go Broke & MORE
248K312