mirror of
https://forge.univ-lyon1.fr/tplifap4/dungeonanddeamon.git
synced 2024-02-27 13:31:50 +01:00
63 lines
1.7 KiB
C++
63 lines
1.7 KiB
C++
#ifndef GODOT_CPP_ARVRCONTROLLER_HPP
|
|
#define GODOT_CPP_ARVRCONTROLLER_HPP
|
|
|
|
|
|
#include <gdnative_api_struct.gen.h>
|
|
#include <stdint.h>
|
|
|
|
#include <core/CoreTypes.hpp>
|
|
#include <core/Ref.hpp>
|
|
#include "ARVRPositionalTracker.hpp"
|
|
|
|
#include "Spatial.hpp"
|
|
namespace godot {
|
|
|
|
class Mesh;
|
|
|
|
class ARVRController : public Spatial {
|
|
struct ___method_bindings {
|
|
godot_method_bind *mb_get_controller_id;
|
|
godot_method_bind *mb_get_controller_name;
|
|
godot_method_bind *mb_get_hand;
|
|
godot_method_bind *mb_get_is_active;
|
|
godot_method_bind *mb_get_joystick_axis;
|
|
godot_method_bind *mb_get_joystick_id;
|
|
godot_method_bind *mb_get_mesh;
|
|
godot_method_bind *mb_get_rumble;
|
|
godot_method_bind *mb_is_button_pressed;
|
|
godot_method_bind *mb_set_controller_id;
|
|
godot_method_bind *mb_set_rumble;
|
|
};
|
|
static ___method_bindings ___mb;
|
|
|
|
public:
|
|
static void ___init_method_bindings();
|
|
|
|
static inline const char *___get_class_name() { return (const char *) "ARVRController"; }
|
|
static inline Object *___get_from_variant(Variant a) { godot_object *o = (godot_object*) a; return (o) ? (Object *) godot::nativescript_1_1_api->godot_nativescript_get_instance_binding_data(godot::_RegisterState::language_index, o) : nullptr; }
|
|
|
|
// enums
|
|
|
|
// constants
|
|
|
|
|
|
static ARVRController *_new();
|
|
|
|
// methods
|
|
int64_t get_controller_id() const;
|
|
String get_controller_name() const;
|
|
ARVRPositionalTracker::TrackerHand get_hand() const;
|
|
bool get_is_active() const;
|
|
real_t get_joystick_axis(const int64_t axis) const;
|
|
int64_t get_joystick_id() const;
|
|
Ref<Mesh> get_mesh() const;
|
|
real_t get_rumble() const;
|
|
int64_t is_button_pressed(const int64_t button) const;
|
|
void set_controller_id(const int64_t controller_id);
|
|
void set_rumble(const real_t rumble);
|
|
|
|
};
|
|
|
|
}
|
|
|
|
#endif |