У нас вы можете посмотреть бесплатно 11 - Joystick Input | C++ Game Engine Programming или скачать в максимальном доступном качестве, видео которое было загружено на ютуб. Для загрузки выберите вариант из формы ниже:
Если кнопки скачивания не
загрузились
НАЖМИТЕ ЗДЕСЬ или обновите страницу
Если возникают проблемы со скачиванием видео, пожалуйста напишите в поддержку по адресу внизу
страницы.
Спасибо за использование сервиса ClipSaver.ru
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: / @progrematic GitHub repository: https://github.com/progrematic/hippo Twitter: / 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)