[go: up one dir, main page]

File: mouse.hh

package info (click to toggle)
fbzx 3.1.0-1
  • links: PTS, VCS
  • area: contrib
  • in suites: bullseye, buster, stretch
  • size: 2,152 kB
  • ctags: 861
  • sloc: cpp: 10,495; ansic: 8,663; python: 1,116; makefile: 123; xml: 28; sh: 3
file content (28 lines) | stat: -rw-r--r-- 323 bytes parent folder | download
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
26
27
28
#ifndef SRC_MOUSE_HH_
#define SRC_MOUSE_HH_

#include "z80free/Z80free.h"
#include <inttypes.h>
#include <SDL/SDL.h>

class Mouse {

  int posx;
  int posy;

public:

  byte x;
  byte y;
  byte button;
  bool enabled;

  Mouse();
  void reset();
  void emulate(int);
  byte in(word);

};

extern class Mouse *mouse;
#endif