a2bejwld/a2bejwld/mouseWrapper.h

36 lines
658 B
C
Raw Normal View History

2016-08-19 04:08:38 +00:00
//
// mouseWrapper.h
// a2bejwld
//
// Created by Jeremy Rand on 2016-08-17.
// Copyright © 2016 Jeremy Rand. All rights reserved.
//
#ifndef __a2bejwld__mouseWrapper__
#define __a2bejwld__mouseWrapper__
#include <stdbool.h>
#include "types.h"
// Types
typedef struct tMouseCallbacks {
bool (*mouseSelectSquare)(tSquare square);
bool (*mouseSwapSquare)(tDirection dir);
2016-08-19 04:08:38 +00:00
} tMouseCallbacks;
// API
extern bool initMouse(tMouseCallbacks *callbacks);
2016-08-19 04:08:38 +00:00
extern void shutdownMouse(void);
extern bool hasMouse(void);
2016-08-19 04:08:38 +00:00
extern bool pollMouse(void);
extern void moveMouseToSquare(tSquare square);
2016-08-19 04:08:38 +00:00
#endif /* defined(__a2bejwld__mouseWrapper__) */