GUI parts for DISCO-F746NG. GuiBase, Button, ButtonGroup, Label, BlinkLabel, NumericLabel, SeekBar, SeekbarGroup
Dependents: F746_SD_GraphicEqualizer_ren0620
Fork of F746_GUI by
Diff: Button.cpp
- Revision:
- 14:95544440b46c
- Parent:
- 4:cbf7ed9092a3
--- a/Button.cpp Sat Apr 30 06:33:32 2016 +0000 +++ b/Button.cpp Wed Jun 22 03:49:51 2016 +0000 @@ -47,7 +47,8 @@ { uint16_t x = state_.touchX[n]; uint16_t y = state_.touchY[n]; - if ( (X_ <= x) && (x <= X_+W_) && + + if ( (X_ <= x) && (x <= X_+W_+X_expend) && (Y_ <= y) && (y <= Y_+H_) ) return true; } return false;