- Популярные видео
- Авто
- Видео-блоги
- ДТП, аварии
- Для маленьких
- Еда, напитки
- Животные
- Закон и право
- Знаменитости
- Игры
- Искусство
- Комедии
- Красота, мода
- Кулинария, рецепты
- Люди
- Мото
- Музыка
- Мультфильмы
- Наука, технологии
- Новости
- Образование
- Политика
- Праздники
- Приколы
- Природа
- Происшествия
- Путешествия
- Развлечения
- Ржач
- Семья
- Сериалы
- Спорт
- Стиль жизни
- ТВ передачи
- Танцы
- Технологии
- Товары
- Ужасы
- Фильмы
- Шоу-бизнес
- Юмор
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
-- 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
Комментарии отсутствуют
Информация о видео
6 июня 2021 г. 2:45:01
00:36:55
Другие видео канала





















