Загрузка...

11 - Joystick Input | C++ Game Engine Programming

Welcome to my C++ Game Engine series!

-- Note --
Slightly noisier video, and the audio/video get slightly out of sync near the end. Apologies for both! I make it up by adding some fancy zoom animations throughout to make the code easier to read.
I'll get a hang of this "editing" thing soon enough :)

-- Description --
In this episode we abstract SDL joystick input and use it to change the colour of our rect.

-- Links --
What kind of game should we build? Vote here: https://www.youtube.com/channel/UCANsSRGpMvyDQQzj6TbtDxQ/community
GitHub repository: https://github.com/progrematic/hippo​
Twitter: https://twitter.com/progrematic​

-- Timestamps --
Joystick Abstraction: (0:00)
Creating a Controller struct: (4:21)
Defining our API: (8:12)
Hooking SDL events into our Joystick class: (11:23)
OnJoystickConnected method: (12:24)
OnJoystickDisconnected method: (17:58)
Update method: (20:30)
Getters: (23:08)
Testing our Joystick: (25:15)
Mapping SDL's axis ranges to our own: (27:45)
Implementing a Deadzone: (29:47)
Changing our rect colours with our Joystick: (31:45)

Видео 11 - Joystick Input | C++ Game Engine Programming канала Progrematic
Яндекс.Метрика
Все заметки Новая заметка Страницу в заметки
Страницу в закладки Мои закладки
На информационно-развлекательном портале SALDA.WS применяются cookie-файлы. Нажимая кнопку Принять, вы подтверждаете свое согласие на их использование.
О CookiesНапомнить позжеПринять