Makinom - Game Toolkit for Unity
  • Features
  • Showcase
  • Guide
    • Documentation
    • Tutorials
    • Extensions
    • API
  • Makinom 1
    • Tutorials
    • Plugins
    • API
  • Support
  • Forum
  • Get Makinom

Guide

Plugins

  • Plugins Overview
  • Compass Navigator Pro Plugin
  • Save Game Compression Plugin

Schematic Nodes

  • Schematic Nodes Overview
  • Cinemachine Nodes
  • Footstepper Nodes
  • Post Processing Nodes
  • Unity Ads Nodes
  • Unity Analytics Nodes
  • Video Player Nodes

Scripts

  • Scripts Overview
  • A* Pathfinding Movement Component
  • Core GameKit Wrapper
  • Loading Screen Pro Scene Load
  • PolyNav 2D Movement Component
  • Pool Boss Wrapper
  • Rewired Input Key
  • Unity Input Action Input Key

Setups

  • Setups Overview
  • PS4 Controller Mapping
  • XBox Controller Mapping
  • Switch Pro Controller Mapping
  • Home
  • Guide
  • Extensions
  • Setups
  • PS4 Controller Mapping

PS4 Controller Mapping

Table of Contents
  • Adding the setup
    • Input Manager Setup
      • PS4 LS Horizontal
      • PS4 LS Vertical
      • PS4 RS Horizontal
      • PS4 RS Vertical
      • PS4 D-Pad Horizontal
      • PS4 D-Pad Vertical
      • PS4 L2
      • PS4 R2
    • Alternative Setup

Add PS4 controller mapping input keys to your Makinom project.

This’ll add input key data assets to your project.

Download Setup

Adding the setup #

Before importing the setup into your Unity project, make sure you’ve got Makinom imported in it. You’ll need at least Makinom 2.1.0.

The input keys will be imported into Assets/Gaming Is Love/_Data/Input Key/ and will be available after importing.

Please open the Makinom editor after import and save once to make sure the references to the new input keys are saved in the project.

Input Manager Setup #

The left stick (LS), right stick (RS), D-Pad and L2/R2 triggers require a Unity Input Manager setup. You can open the Unity Input Manager via Edit > Project Settings > Input Manager.

The following axes have to be added to the input manager:

PS4 LS Horizontal #

  • Type: Joystick Axis
  • Axis: X axis

PS4 LS Vertical #

  • Invert: Enabled
  • Type: Joystick Axis
  • Axis: Y axis

PS4 RS Horizontal #

  • Type: Joystick Axis
  • Axis: 3rd axis

PS4 RS Vertical #

  • Invert: Enabled
  • Type: Joystick Axis
  • Axis: 6th axis

PS4 D-Pad Horizontal #

  • Type: Joystick Axis
  • Axis: 7th axis

PS4 D-Pad Vertical #

  • Type: Joystick Axis
  • Axis: 8th axis

PS4 L2 #

  • Type: Joystick Axis
  • Axis: 4th axis

PS4 R2 #

  • Type: Joystick Axis
  • Axis: 5th axis

Alternative Setup #

Alternatively, you can also copy the following data into your project’s InputManager.asset file. The file is located in the ProjectSettings folder of your Unity project.

Just add the data after the last data of the file – make sure to close and reopen the Unity editor to get the renewed setup.

- serializedVersion: 3
  m_Name: PS4 LS Horizontal
  descriptiveName: 
  descriptiveNegativeName: 
  negativeButton: 
  positiveButton: 
  altNegativeButton: 
  altPositiveButton: 
  gravity: 0
  dead: 0.19
  sensitivity: 1
  snap: 0
  invert: 0
  type: 2
  axis: 0
  joyNum: 0
- serializedVersion: 3
  m_Name: PS4 RS Horizontal
  descriptiveName: 
  descriptiveNegativeName: 
  negativeButton: 
  positiveButton: 
  altNegativeButton: 
  altPositiveButton: 
  gravity: 0
  dead: 0.19
  sensitivity: 1
  snap: 0
  invert: 0
  type: 2
  axis: 2
  joyNum: 0
- serializedVersion: 3
  m_Name: PS4 D-Pad Horizontal
  descriptiveName: 
  descriptiveNegativeName: 
  negativeButton: 
  positiveButton: 
  altNegativeButton: 
  altPositiveButton: 
  gravity: 0
  dead: 0.19
  sensitivity: 1
  snap: 0
  invert: 0
  type: 2
  axis: 6
  joyNum: 0
- serializedVersion: 3
  m_Name: PS4 L2
  descriptiveName: 
  descriptiveNegativeName: 
  negativeButton: 
  positiveButton: 
  altNegativeButton: 
  altPositiveButton: 
  gravity: 0
  dead: 0.19
  sensitivity: 1
  snap: 0
  invert: 0
  type: 2
  axis: 3
  joyNum: 0
- serializedVersion: 3
  m_Name: PS4 LS Vertical
  descriptiveName: 
  descriptiveNegativeName: 
  negativeButton: 
  positiveButton: 
  altNegativeButton: 
  altPositiveButton: 
  gravity: 0
  dead: 0.19
  sensitivity: 1
  snap: 0
  invert: 1
  type: 2
  axis: 1
  joyNum: 0
- serializedVersion: 3
  m_Name: PS4 RS Vertical
  descriptiveName: 
  descriptiveNegativeName: 
  negativeButton: 
  positiveButton: 
  altNegativeButton: 
  altPositiveButton: 
  gravity: 0
  dead: 0.19
  sensitivity: 1
  snap: 0
  invert: 1
  type: 2
  axis: 5
  joyNum: 0
- serializedVersion: 3
  m_Name: PS4 D-Pad Vertical
  descriptiveName: 
  descriptiveNegativeName: 
  negativeButton: 
  positiveButton: 
  altNegativeButton: 
  altPositiveButton: 
  gravity: 0
  dead: 0.19
  sensitivity: 1
  snap: 0
  invert: 0
  type: 2
  axis: 7
  joyNum: 0
- serializedVersion: 3
  m_Name: PS4 R2
  descriptiveName: 
  descriptiveNegativeName: 
  negativeButton: 
  positiveButton: 
  altNegativeButton: 
  altPositiveButton: 
  gravity: 0
  dead: 0.19
  sensitivity: 1
  snap: 0
  invert: 0
  type: 2
  axis: 4
  joyNum: 0

 

Share This Article :
  • Facebook
  • Twitter
  • LinkedIn
  • Pinterest
Updated on October 26, 2022
Table of Contents
  • Adding the setup
    • Input Manager Setup
      • PS4 LS Horizontal
      • PS4 LS Vertical
      • PS4 RS Horizontal
      • PS4 RS Vertical
      • PS4 D-Pad Horizontal
      • PS4 D-Pad Vertical
      • PS4 L2
      • PS4 R2
    • Alternative Setup
Sitemap
  • Features
  • Showcase
  • Guide
    • Documentation
    • Tutorials
    • Extensions
    • API
  • Makinom 1 Hub
    • Tutorials
    • Plugins
    • API
  • Support
  • Forum
  • Get Makinom
  • Contact
  • Blog
  • ORK Framework
  • gamingislove.com
Categories
  • Makinom 1 (97)
    • Tutorial (97)
      • 2D Platformer (14)
      • 2D Roguelike (8)
      • Breakout (6)
      • How-to (34)
      • Match 3 (6)
      • Schematic (4)
      • Scripting (6)
      • Space Shooter (11)
      • Survival Shooter (8)
  • News (11)
  • Release (68)
Search

© 2015 Gaming is Love e.U.

Disclosure: This site may contain affiliate links, which means I may receive a commission if you click a link and purchase something that I have recommended. While clicking these links won’t cost you any money, they will help me fund my development projects while recommending great assets!