Commit Graph

248 Commits

Author SHA1 Message Date
Henrik Rydgard
e7001eb701 Some input tweaks and UI utility functions 2014-05-19 23:28:11 +02:00
The Dax
104486d314 Just to be safe, initialise the Slider's step_ too. 2014-05-06 15:05:47 -04:00
The Dax
e2e352622a Oops, make sure step_ is initialised, even with the constructor that doesn't specify a step. 2014-05-06 14:54:19 -04:00
The Dax
b1261c5b55 Use integers instead. 2014-05-06 00:55:37 -04:00
The Dax
45f475675d Make sure the Slider can't step in increments of less than 1. 2014-05-05 23:52:10 -04:00
The Dax
fbdf659723 Add the ability for Sliders and their corresponding Screens to have the ability to move in steps greater than 1.
No float support, only the integer screens are affected.
2014-05-05 23:47:22 -04:00
Henrik Rydgard
7c2ff2557d UI: Improve scoring function for directional keyboard nav 2014-03-19 16:15:33 +01:00
Henrik Rydgård
d2029ed29a Minor tweak to drag behaviour of scrollviews 2014-03-10 23:13:26 +01:00
Henrik Rydgård
c65734c33a Move a return statement to the correct position. 2014-03-03 16:10:14 +01:00
Henrik Rydgård
3d906a1471 Focus the contents of popup screens 2014-03-03 12:55:29 +01:00
Henrik Rydgård
af35f06390 More focus behaviour tweaking. 2014-03-03 12:33:57 +01:00
Henrik Rydgård
27bb0b01d3 Fix some focus issues, allow to set a DefaultFocusView on ViewGroups. 2014-03-03 11:39:06 +01:00
Henrik Rydgard
f73890f0b2 UIContext now keeps track of dimensions, allowing us to reduce use of display.h 2014-02-10 12:36:26 +01:00
Henrik Rydgård
4818a85042 Add drag capturing (useful to resolve conflicts between scrollviews and draggable controls within)
Some misc cleanup
2014-01-31 14:32:06 +01:00
Henrik Rydgård
b0e318f6d1 Merge pull request #192 from unknownbrackets/keymap
Allow customizing the tab left/right keys
2014-01-25 12:01:32 -08:00
Unknown W. Brackets
1c87fb7485 Allow customizing the tab left/right keys. 2014-01-25 11:58:49 -08:00
Henrik Rydgård
52fac5d294 Remove unused code 2014-01-22 17:32:15 +01:00
Henrik Rydgård
fc3bad8059 viewgroup.h: Include fix 2014-01-22 16:29:59 +01:00
Henrik Rydgård
93155b8a1e Warning fixes 2014-01-14 11:01:45 +01:00
Henrik Rydgård
432fa7e6e6 Workaround for broken key repeat on Ouya - it sends repeats with a different device ID 2014-01-05 12:49:40 +01:00
Henrik Rydgård
ee34dcbfa6 Fix bug in key repeat handling, and ignore the host key repeat system.
May fix navigation issues on Ouya.
2014-01-03 14:21:24 +01:00
Henrik Rydgård
1ef531ec9c Add some infrastructure to handle screen resizes that don't lose the device 2013-12-16 16:19:40 +01:00
Henrik Rydgard
b0ab77d4c2 Fix the disabled look of some views 2013-12-11 20:01:00 +01:00
Henrik Rydgard
d680a346dc UI tweaks (image support on buttons, listview height max)
Should probably merge Choice and Button...
2013-12-11 09:32:14 +01:00
Henrik Rydgård
d7c90499c4 Item views should not override height when a different layout is specified. Fix some fallout from that change. 2013-12-06 16:44:39 +01:00
Henrik Rydgård
af08e8f1de Limit progress bars to [0-1]. 2013-12-06 15:28:52 +01:00
Henrik Rydgård
59202a0dfc Add +/- buttons to integer sliders for fine adjustment 2013-12-06 15:01:34 +01:00
Henrik Rydgård
48debd78f8 Map backspace correctly in SDL. Minor cosmetic slider fixes 2013-12-05 15:52:39 +01:00
Henrik Rydgård
4caec3871c Add OnOK, OnCancel helpers to UIScreen 2013-12-05 14:15:39 +01:00
Henrik Rydgård
5a5911eac4 Remove unnecessary logging 2013-12-03 17:49:58 +01:00
Henrik Rydgård
1b793049d3 Key repeat simulation for UI navigation 2013-12-03 16:47:15 +01:00
Henrik Rydgård
cbd4a6d758 Add support for loading JPEG files into textures automatically. 2013-12-02 16:50:23 +01:00
Henrik Rydgård
8391f2ac81 Fix minor scrolling issue where the next item wouldn't be prioritized over the top bar. 2013-12-01 15:36:18 +01:00
Henrik Rydgård
0e34574bd7 Get rid of empty button from popup lists. Some deactivated logging in lang. 2013-11-29 11:33:51 +01:00
Henrik Rydgard
1d28b00536 UIContext; Add accessor for font style 2013-11-26 14:45:22 +01:00
Henrik Rydgard
d2e70ce06f Minor UI tweaks 2013-11-26 13:57:25 +01:00
Henrik Rydgård
d86b4c63d8 Constify tag 2013-11-20 17:11:40 +01:00
Henrik Rydgård
59ea9c5e62 Add tag for simple data transfer between screens. 2013-11-20 17:09:41 +01:00
Henrik Rydgård
397da81a2e Crash bug fix for empty scrollviews 2013-11-20 14:52:09 +01:00
Sacha
2583c67c32 Qt: Use native TTF draw instead of font atlas. 2013-11-18 01:57:29 +10:00
Henrik Rydgård
4e997a2e15 Make sure MAX_POINTERS is only defined once. 2013-11-04 15:31:53 +01:00
Henrik Rydgård
f9b19d7789 Warning fix 2013-11-04 15:31:53 +01:00
Henrik Rydgård
64614c954f Update some CMakeLists used by projects other than PPSSPP 2013-11-04 12:27:37 +01:00
Henrik Rydgård
c4807fbfb8 Add basic support for showing an icon within choices 2013-10-31 13:33:53 +01:00
Henrik Rydgård
b2bc4ffa8e Add "auto-enabled" to ui views (set a pointer to a bool that decides whether the view is enabled or not) 2013-10-29 10:11:41 +01:00
Henrik Rydgård
416cff372c UI fixes 2013-10-28 16:05:21 +01:00
Siddharth
4ebb62aa98 allow checkboxes to be force-toggled 2013-10-27 10:58:16 +05:30
Henrik Rydgård
c53bf92350 Add onFinish callback to screens, hook up for UIScreen::OnBack 2013-10-25 13:09:47 +02:00
Henrik Rydgård
4c8157694a Make keyboard navigation act slightly less crazy. 2013-10-23 13:55:11 +02:00
Henrik Rydgård
fff83ed237 Fix bug causing clickables not to highlight on mousedown in SDL builds 2013-10-21 11:00:09 +02:00