Open FFBoard
Open source force feedback firmware
Loading...
Searching...
No Matches
ButtonSources.cpp
Go to the documentation of this file.
1/*
2 * ButtonSources.cpp
3 *
4 * Created on: Apr 18, 2024
5 * Author: Yannick
6 */
7#include "constants.h"
8#include "SPIButtons.h"
9#include "CanButtons.h"
10#include "LocalButtons.h"
11#include <ShifterAnalog.h>
12#include "PCF8574.h"
13
14#ifndef BUTTONSOURCES_DEFAULT_OVERRIDE
15// Register possible button sources (id 0-15)
16const std::vector<class_entry<ButtonSource>> ButtonSource::all_buttonsources =
17{
18#ifdef LOCALBUTTONS
20#endif
21#ifdef SPIBUTTONS
23#endif
24#ifdef SPIBUTTONS2
26#endif
27#ifdef SHIFTERBUTTONS
29#endif
30#ifdef PCF8574BUTTONS
32#endif
33#ifdef CANBUTTONS
35#endif
36};
37#endif
constexpr class_entry< B > add_class(std::optional< uint16_t > selectionId=std::nullopt)
static const std::vector< class_entry< ButtonSource > > all_buttonsources