Added filtering of key auto repeat for SHIFT and CTRL keys in GLCanvas3D
This commit is contained in:
parent
de635f9088
commit
90c49f4c1a
2 changed files with 24 additions and 3 deletions
|
@ -132,6 +132,15 @@ private:
|
|||
wxTimer* m_timer;
|
||||
};
|
||||
|
||||
class KeyAutoRepeatFilter
|
||||
{
|
||||
size_t m_count{ 0 };
|
||||
|
||||
public:
|
||||
void increase_count() { ++m_count; }
|
||||
void reset_count() { m_count = 0; }
|
||||
bool is_first() const { return m_count == 0; }
|
||||
};
|
||||
|
||||
wxDECLARE_EVENT(EVT_GLCANVAS_OBJECT_SELECT, SimpleEvent);
|
||||
|
||||
|
@ -545,6 +554,9 @@ private:
|
|||
bool m_show_picking_texture;
|
||||
#endif // ENABLE_RENDER_PICKING_PASS
|
||||
|
||||
KeyAutoRepeatFilter m_shift_kar_filter;
|
||||
KeyAutoRepeatFilter m_ctrl_kar_filter;
|
||||
|
||||
RenderStats m_render_stats;
|
||||
|
||||
int m_imgui_undo_redo_hovered_pos{ -1 };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue