File: input.hpp

package info (click to toggle)
higan 094-5
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 9,780 kB
  • ctags: 15,643
  • sloc: cpp: 103,963; ansic: 659; makefile: 531; sh: 25
file content (25 lines) | stat: -rwxr-xr-x 359 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
struct Input {
  enum class Device : unsigned {
    Joypad,
    None,
  };

  void latch(bool data);
  bool data(bool port);
  void connect(bool port, Device device);

  void power();
  void reset();

  void serialize(serializer&);

private:
  Device port1;
  Device port2;

  bool latchdata;
  unsigned counter1;
  unsigned counter2;
};

extern Input input;