30 lines
587 B
Markdown
30 lines
587 B
Markdown
|
|
# InputModule::~InputModule()
|
||
|
|
|
||
|
|
销毁对象并释放相关资源。
|
||
|
|
|
||
|
|
```cpp
|
||
|
|
virtual ~InputModule() = default;
|
||
|
|
```
|
||
|
|
|
||
|
|
该方法声明于 `XCEngine/Input/InputModule.h`,当前页面用于固定 `InputModule` 类目录下的方法级 canonical 路径。
|
||
|
|
|
||
|
|
**参数:** 无。
|
||
|
|
|
||
|
|
**返回:** `void` - 无返回值。
|
||
|
|
|
||
|
|
**示例:**
|
||
|
|
|
||
|
|
```cpp
|
||
|
|
#include <XCEngine/Input/InputModule.h>
|
||
|
|
|
||
|
|
void Example() {
|
||
|
|
XCEngine::Input::InputModule object;
|
||
|
|
// 对象离开作用域时会自动触发析构。
|
||
|
|
}
|
||
|
|
```
|
||
|
|
|
||
|
|
## 相关文档
|
||
|
|
|
||
|
|
- [返回类总览](InputModule.md)
|
||
|
|
- [返回模块目录](../Input.md)
|