4. Player Input

Overview

This chapter will tackle the subject of player input. We will learn how to associate a keypress or touch input from a touch-enabled device with an in-game action such as jumping or moving.

By the end of this chapter, you will know about Action Mappings and Axis Mappings, how to create and modify them, how to listen to each of those mappings, how to execute in-game actions when they're pressed and released, and how to preview your game as if you were playing on a mobile device.

Introduction

In the previous chapter, we created our C++ class that inherits from the Character class and added all the necessary Actor components to be able to see the game from that character's perspective, as well as being able to see ...

Get Game Development Projects with Unreal Engine now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.