Increase PoolBox to Version 0.9.0
This commit is contained in:
@@ -1,32 +1,30 @@
|
||||
#pragma once
|
||||
#include "../../stdint.hpp"
|
||||
|
||||
namespace JabyEngine {
|
||||
static constexpr int8_t operator""_i8(unsigned long long int value) {
|
||||
return static_cast<int8_t>(value);
|
||||
}
|
||||
static constexpr int8_t operator""_i8(unsigned long long int value) {
|
||||
return static_cast<int8_t>(value);
|
||||
}
|
||||
|
||||
static constexpr uint8_t operator""_u8(unsigned long long int value) {
|
||||
return static_cast<uint8_t>(value);
|
||||
}
|
||||
static constexpr uint8_t operator""_u8(unsigned long long int value) {
|
||||
return static_cast<uint8_t>(value);
|
||||
}
|
||||
|
||||
// ###################################################################
|
||||
// ###################################################################
|
||||
|
||||
static constexpr int16_t operator""_i16(unsigned long long int value) {
|
||||
return static_cast<int16_t>(value);
|
||||
}
|
||||
static constexpr int16_t operator""_i16(unsigned long long int value) {
|
||||
return static_cast<int16_t>(value);
|
||||
}
|
||||
|
||||
static constexpr uint16_t operator""_u16(unsigned long long int value) {
|
||||
return static_cast<uint16_t>(value);
|
||||
}
|
||||
static constexpr uint16_t operator""_u16(unsigned long long int value) {
|
||||
return static_cast<uint16_t>(value);
|
||||
}
|
||||
|
||||
// ###################################################################
|
||||
// ###################################################################
|
||||
|
||||
static constexpr int32_t operator""_i32(unsigned long long int value) {
|
||||
return static_cast<int32_t>(value);
|
||||
}
|
||||
static constexpr int32_t operator""_i32(unsigned long long int value) {
|
||||
return static_cast<int32_t>(value);
|
||||
}
|
||||
|
||||
static constexpr uint32_t operator""_u32(unsigned long long int value) {
|
||||
return static_cast<uint32_t>(value);
|
||||
}
|
||||
static constexpr uint32_t operator""_u32(unsigned long long int value) {
|
||||
return static_cast<uint32_t>(value);
|
||||
}
|
@@ -3,9 +3,6 @@
|
||||
|
||||
namespace JabyEngine {
|
||||
namespace Make {
|
||||
using JabyEngine::operator""_i16;
|
||||
using JabyEngine::operator""_u16;
|
||||
|
||||
template<typename T, typename...ARGS>
|
||||
static constexpr T creator_template(const ARGS&...args) {
|
||||
return T::create(args...);
|
||||
|
@@ -50,6 +50,10 @@ namespace JabyEngine {
|
||||
return RawController::header.rumble1;
|
||||
}
|
||||
|
||||
bool is_connected() const {
|
||||
return RawController::header.state != RawController::State::Disconnected;
|
||||
}
|
||||
|
||||
bool is_useable() const {
|
||||
const auto type = RawController::get_type();
|
||||
return ((RawController::header.state == RawController::State::Stable) && (type == ControllerType::Controller || type == ControllerType::DualShock));
|
||||
|
@@ -1,4 +1,5 @@
|
||||
#pragma once
|
||||
#include "Auxiliary/literals.hpp"
|
||||
#include <stddef.hpp>
|
||||
|
||||
#define __used __attribute__((used))
|
||||
|
Reference in New Issue
Block a user