Allow scrolling and up and down arrows for slider manipulation.

This commit is contained in:
Lirusaito
2019-01-16 18:27:31 -05:00
parent 0ddfdad180
commit dcc8013028
2 changed files with 16 additions and 12 deletions

View File

@@ -75,12 +75,12 @@ public:
boost::signals2::connection setMouseDownCallback( const commit_signal_t::slot_type& cb );
boost::signals2::connection setMouseUpCallback( const commit_signal_t::slot_type& cb );
virtual BOOL handleHover(S32 x, S32 y, MASK mask);
virtual BOOL handleMouseUp(S32 x, S32 y, MASK mask);
virtual BOOL handleMouseDown(S32 x, S32 y, MASK mask);
virtual BOOL handleKeyHere(KEY key, MASK mask);
virtual void draw();
BOOL handleHover(S32 x, S32 y, MASK mask) override;
BOOL handleMouseUp(S32 x, S32 y, MASK mask) override;
BOOL handleMouseDown(S32 x, S32 y, MASK mask) override;
BOOL handleKeyHere(KEY key, MASK mask) override;
BOOL handleScrollWheel(S32 x, S32 y, S32 clicks) override;
void draw() override;
private:
void setValueAndCommit(F32 value);