coastline 0.0.4
Loading...
Searching...
No Matches
controller.h File Reference
#include <cstddef>
#include <cstdint>
Include dependency graph for controller.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  coastline::ControllerState
 The state of one controller port, as libultra reports a pad. More...

Namespaces

namespace  coastline

Enumerations

enum  coastline::ControllerButton : std::uint16_t {
  coastline::BUTTON_C_RIGHT = 0x0001 , coastline::BUTTON_C_LEFT = 0x0002 , coastline::BUTTON_C_DOWN = 0x0004 , coastline::BUTTON_C_UP = 0x0008 ,
  coastline::BUTTON_R = 0x0010 , coastline::BUTTON_L = 0x0020 , coastline::BUTTON_D_RIGHT = 0x0100 , coastline::BUTTON_D_LEFT = 0x0200 ,
  coastline::BUTTON_D_DOWN = 0x0400 , coastline::BUTTON_D_UP = 0x0800 , coastline::BUTTON_START = 0x1000 , coastline::BUTTON_Z = 0x2000 ,
  coastline::BUTTON_B = 0x4000 , coastline::BUTTON_A = 0x8000
}
 The buttons of a Nintendo 64 controller, with the bits libultra reports. More...

Variables

constexpr std::size_t coastline::CONTROLLER_PORTS = 4
 The number of controller ports of the console.