diff options
author | Simon Howard | 2010-12-10 20:31:46 +0000 |
---|---|---|
committer | Simon Howard | 2010-12-10 20:31:46 +0000 |
commit | 56824b130b786aab49876a71c6c768a17c5a4f1c (patch) | |
tree | f05611777e7b7014d0764fc957ea3b2c2543a054 /setup/txt_joybinput.c | |
parent | 9caebe584ccb95239b2ed360d4bce3dffc5ecfea (diff) | |
download | chocolate-doom-56824b130b786aab49876a71c6c768a17c5a4f1c.tar.gz chocolate-doom-56824b130b786aab49876a71c6c768a17c5a4f1c.tar.bz2 chocolate-doom-56824b130b786aab49876a71c6c768a17c5a4f1c.zip |
Replace txt_widget_t#selectable with a callback function to query
whether the widget is selectable. This stops the table code from
selecting things that aren't really selectable - eg. empty tables,
scrollpanes containing unselectable widgets, etc.
Fixes a bug with the warp menu (thanks Proteh).
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 2207
Diffstat (limited to 'setup/txt_joybinput.c')
-rw-r--r-- | setup/txt_joybinput.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/setup/txt_joybinput.c b/setup/txt_joybinput.c index 1e132962..cde3d2c2 100644 --- a/setup/txt_joybinput.c +++ b/setup/txt_joybinput.c @@ -206,6 +206,7 @@ static void TXT_JoystickInputMousePress(TXT_UNCAST_ARG(widget), int x, int y, in txt_widget_class_t txt_joystick_input_class = { + TXT_AlwaysSelectable, TXT_JoystickInputSizeCalc, TXT_JoystickInputDrawer, TXT_JoystickInputKeyPress, |