forked from joseph-montanez/raylib-php
-
Notifications
You must be signed in to change notification settings - Fork 0
/
raylib-gamepad.h
31 lines (20 loc) · 963 Bytes
/
raylib-gamepad.h
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
29
30
31
//
// Created by Joseph Montanez on 4/12/18.
//
#ifndef PHP_RAYLIB_GAMEPAD_H
#define PHP_RAYLIB_GAMEPAD_H
extern zend_class_entry *php_raylib_gamepad_ce;
extern void php_raylib_vector2_free_storage(zend_object *object TSRMLS_DC);
extern zend_object * php_raylib_vector2_new(zend_class_entry *ce TSRMLS_DC);
extern zend_object_handlers php_raylib_vector2_object_handlers;
typedef struct _php_raylib_gamepad_object {
zend_object std;
} php_raylib_gamepad_object;
static inline php_raylib_gamepad_object *php_raylib_gamepad_fetch_object(zend_object *obj) {
return (php_raylib_gamepad_object *)((char *)obj - XtOffsetOf(php_raylib_gamepad_object, std));
}
void php_raylib_gamepad_free_storage(zend_object *object TSRMLS_DC);
zend_object * php_raylib_gamepad_new(zend_class_entry *ce TSRMLS_DC);
#define Z_GAMEPAD_OBJ_P(zv) php_raylib_gamepad_fetch_object(Z_OBJ_P(zv));
void php_raylib_gamepad_startup(INIT_FUNC_ARGS);
#endif //PHP_RAYLIB_GAMEPAD_H