refactor(窗口系统): 移除未使用的输入模块相关代码
清理窗口模块中不再使用的输入系统相关头文件和代码,包括移除<functional>头文件引用、平台输入头文件引用以及输入系统的初始化和更新逻辑
This commit is contained in:
parent
ec136e42e4
commit
492bf78561
|
|
@ -3,8 +3,6 @@
|
|||
#include <extra2d/core/math_types.h>
|
||||
#include <extra2d/core/string.h>
|
||||
#include <extra2d/core/types.h>
|
||||
#include <functional>
|
||||
|
||||
|
||||
#include <SDL.h>
|
||||
|
||||
|
|
|
|||
|
|
@ -1,8 +1,6 @@
|
|||
#include <extra2d/platform/input.h>
|
||||
#include <extra2d/utils/logger.h>
|
||||
#include <extra2d/window/window.h>
|
||||
|
||||
|
||||
#include <SDL.h>
|
||||
#include <glad/glad.h>
|
||||
|
||||
|
|
@ -30,9 +28,6 @@ bool Window::create(const WindowConfig &config) {
|
|||
return false;
|
||||
}
|
||||
|
||||
input_ = unique<Input>();
|
||||
input_->init();
|
||||
|
||||
E2D_LOG_INFO("Window created: {}x{}", width_, height_);
|
||||
return true;
|
||||
}
|
||||
|
|
@ -157,10 +152,6 @@ void Window::pollEvents() {
|
|||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if (input_) {
|
||||
input_->update();
|
||||
}
|
||||
}
|
||||
|
||||
void Window::swapBuffers() {
|
||||
|
|
|
|||
|
|
@ -19,7 +19,6 @@ function define_extra2d_engine()
|
|||
|
||||
-- 头文件路径
|
||||
add_includedirs("Extra2D/include", {public = true})
|
||||
add_includedirs("Extra2D/include/extra2d/platform", {public = true})
|
||||
|
||||
-- 平台配置
|
||||
local plat = get_current_plat()
|
||||
|
|
|
|||
Loading…
Reference in New Issue