v1.2版本改为通过xbox系列手柄进行遥控,并增加智能模式和手动模式

This commit is contained in:
myperworld committed 2025-10-10 21:58:44 +08:00
1 parent 76603d3c31
commit 1a97bc32c3
1839 files changed
+478852 -3

No files matched your search

@@ -0,0 +1,43 @@
#pragma once
#include "fl/stdint.h"
namespace fl {
// fl::begin for arrays
template <typename T, fl::size N>
constexpr T* begin(T (&array)[N]) noexcept {
return array;
}
// fl::end for arrays
template <typename T, fl::size N>
constexpr T* end(T (&array)[N]) noexcept {
return array + N;
}
// fl::begin for containers with begin() member function
template <typename Container>
constexpr auto begin(Container& c) -> decltype(c.begin()) {
return c.begin();
}
// fl::begin for const containers with begin() member function
template <typename Container>
constexpr auto begin(const Container& c) -> decltype(c.begin()) {
return c.begin();
}
// fl::end for containers with end() member function
template <typename Container>
constexpr auto end(Container& c) -> decltype(c.end()) {
return c.end();
}
// fl::end for const containers with end() member function
template <typename Container>
constexpr auto end(const Container& c) -> decltype(c.end()) {
return c.end();
}
} // namespace fl