mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2025-12-12 03:02:30 +00:00
feat(ui): implement CSimpleTop::OnKeyDownRepeat
This commit is contained in:
parent
d8780335f7
commit
982aedbc02
7 changed files with 43 additions and 8 deletions
|
|
@ -119,7 +119,17 @@ int32_t CGWorldFrame::OnLayerKeyDown(const CKeyEvent& evt) {
|
|||
|
||||
this->m_camera->SetFacing(yaw, pitch, roll);
|
||||
|
||||
return 0;
|
||||
return 1;
|
||||
}
|
||||
|
||||
int32_t CGWorldFrame::OnLayerKeyDownRepeat(const CKeyEvent& evt) {
|
||||
if (CSimpleFrame::OnLayerKeyDownRepeat(evt)) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
this->OnLayerKeyDown(evt);
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
CSimpleFrame* CGWorldFrame::Create(CSimpleFrame* parent) {
|
||||
|
|
|
|||
|
|
@ -12,6 +12,7 @@ class CGWorldFrame : public CSimpleFrame {
|
|||
|
||||
virtual void OnFrameRender(CRenderBatch* batch, uint32_t layer);
|
||||
virtual int32_t OnLayerKeyDown(const CKeyEvent& evt);
|
||||
virtual int32_t OnLayerKeyDownRepeat(const CKeyEvent& evt);
|
||||
|
||||
static CSimpleFrame* Create(CSimpleFrame* parent);
|
||||
static void RenderWorld(void* param);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue