Commit Graph

248 Commits

Author SHA1 Message Date
Henrik Rydgard
ddf5c379c3 Quickfix for mapping dialog 2013-08-19 22:05:22 +02:00
Henrik Rydgard
85d0fc61c5 Fix the disabled state of choices and checkboxes 2013-08-18 23:11:26 +02:00
Henrik Rydgard
267f105261 Fix recursive scissor rects. Clip text to buttons if necessary. 2013-08-18 22:29:50 +02:00
Henrik Rydgard
2d6f742694 Minor fixes 2013-08-18 19:51:19 +02:00
Henrik Rydgard
0819b42171 Reset logicop state when drawing UI 2013-08-18 18:53:32 +02:00
Henrik Rydgard
987aaa26d8 Accept Xperia Play's circle/cross as accept/cancel, correctly this time 2013-08-18 01:18:10 +02:00
Henrik Rydgard
0dda25890a Consider "X" on xperia play an "accept" button in the UI. 2013-08-18 01:12:40 +02:00
Henrik Rydgard
0a857fe4a1 Add a way to get the "System name" (will be mostly useful for android). Tweaks. 2013-08-18 00:14:25 +02:00
Henrik Rydgard
1effa13869 Fix minor bug in ChoiceStrips 2013-08-17 13:20:28 +02:00
Henrik Rydgard
17996ccd4c Fix some kb control bugs (slider, etc) 2013-08-17 12:06:08 +02:00
Henrik Rydgard
5422dead6a Fix bug with float sliders. minor stuff. 2013-08-17 10:33:49 +02:00
Henrik Rydgard
4a1c3c4f83 More UI stuff, add glMapBuffer 2013-08-16 16:47:25 +02:00
Henrik Rydgard
569cdb9c08 Hold a lock while modifying viewgroups to prevent crashing from asynchronous input 2013-08-16 14:02:28 +02:00
Henrik Rydgard
c3ea52bad5 More UI stuff 2013-08-16 12:51:57 +02:00
Henrik Rydgard
1353a9d73d Bugfixes 2013-08-15 22:43:42 +02:00
Henrik Rydgard
612dd6abed Remove some more unnecessary logging 2013-08-15 22:34:02 +02:00
Henrik Rydgard
e8d07b02c2 Fix a potential crash bug with axis input. Remove ok/cancel buttons from popup lists. 2013-08-15 22:13:57 +02:00
Henrik Rydgard
357966447d More UI 2013-08-14 23:29:27 +02:00
Henrik Rydgard
1be5ce83d7 error handling changes 2013-08-14 23:04:35 +02:00
Henrik Rydgard
77fcfd0f20 More UI tweaks 2013-08-13 00:06:23 +02:00
Henrik Rydgard
46f7415bc9 Various UI key navigatation improvements 2013-08-12 23:07:27 +02:00
Henrik Rydgard
0c8692bc44 Layout changes for popup views 2013-08-10 23:03:12 +02:00
Henrik Rydgard
f00bfc5464 Get device manufacturer + type 2013-08-06 11:08:55 +02:00
Sacha
48498d1833 Rename KEYCODE to NKCODE (native key code) to kill name collision. Implement keymapping for Blackberry. 2013-08-05 03:30:34 +10:00
Unknown W. Brackets
7d1601d682 Fix and override/overload warning. 2013-07-26 23:04:53 -07:00
Henrik Rydgard
7421e1de67 NewUI: Fix some flicker when switching between screens. 2013-07-21 13:30:47 +02:00
Henrik Rydgard
d70ac3bba5 Add SliderFloat 2013-07-20 13:54:09 +02:00
Henrik Rydgard
b059027359 Add centering mode to AnchorLayout. 2013-07-20 12:04:53 +02:00
Henrik Rydgård
13b8277bd3 Fix some confusing code noticed by unknown, typo fix 2013-07-20 09:43:55 +02:00
Henrik Rydgard
d5d969fc6a Fix measuring bug in GridLayout 2013-07-18 16:56:47 +02:00
Henrik Rydgard
cd8987b33b Add basic slider control 2013-07-18 10:25:30 +02:00
Henrik Rydgard
07feef3f44 Various newui tweaks 2013-07-17 01:03:29 +02:00
Henrik Rydgard
a7b92d63d6 NewUI work (popup lists) 2013-07-16 00:25:08 +02:00
Henrik Rydgard
46c9fd3819 Can now merge the result from the buttontracker. 2013-07-15 20:29:50 +02:00
Henrik Rydgard
70a5970d45 Make tabs look a bit more like tabs (color sticks). Also saner focus movement. 2013-07-15 19:56:36 +02:00
Henrik Rydgard
d34495a23f Cleanup 2013-07-15 18:03:34 +02:00
Henrik Rydgard
7aa8aabc3d Focus fixes. 2013-07-15 17:53:12 +02:00
Henrik Rydgard
7151e4c06e Generalize the code mapping android key events into pad button bits, add support for keys needed to navigate UI. 2013-07-15 17:37:16 +02:00
Henrik Rydgård
ed1f13a33f Initial SDL gamepad support 2013-07-14 13:51:30 +02:00
Henrik Rydgard
bd93cd2f1e Fix scrollview bugs (distance, flicker at end) 2013-07-10 21:58:35 +02:00
Henrik Rydgard
28fb341cb2 More mousewheel support 2013-07-08 12:34:39 +02:00
Henrik Rydgård
57d3fa0134 Basic mousewheel support (SDL) 2013-07-08 11:03:32 +02:00
Henrik Rydgard
1dec6e8154 Work towards full android joystick support. 2013-07-06 19:08:20 +02:00
Henrik Rydgard
f1ccdc11b5 Add utility to get a list of Windows disk drives. Rework UI events. 2013-06-27 16:20:18 +02:00
Henrik Rydgard
80c85b1c60 Notify all the screens in the stack that the device was lost. 2013-06-23 17:15:29 +02:00
Henrik Rydgard
0a26fae856 More control over text scaling in TextViews 2013-06-20 21:51:42 +02:00
Henrik Rydgard
deb4ba8323 Still need to clamp to a square, sigh. 2013-06-19 22:18:05 +02:00
Henrik Rydgard
d1df63036a Don't clamp to a circle in the virtual stick. 2013-06-19 20:46:06 +02:00
Henrik Rydgard
2715225db1 Warning fixes 2013-06-11 20:33:41 +02:00
Henrik Rydgard
cf7ccddf1e Add horizontal orientation to TabHolder. Don't draw things outside current scissor rect. 2013-06-10 22:05:58 +02:00
Henrik Rydgard
1d609c9b08 Simulate RTTI where needed. 2013-06-09 13:01:36 +02:00
Henrik Rydgard
976ef3b714 Minor fixes 2013-06-09 12:40:53 +02:00
Henrik Rydgard
bc2a18eeee Add ListView, make FrameLayout do something 2013-06-09 11:20:15 +02:00
Henrik Rydgard
2143b5b608 Minor fixes. Use OutputDebugString for native logging on Windows. 2013-06-09 11:20:15 +02:00
Henrik Rydgard
166acebeff A lot of NewUI work: layout and focus fixes, "TabHolder" 2013-06-08 22:41:17 +02:00
Henrik Rydgard
04f6a35031 More logging, making things slightly more robust somehow (fixed a hang issue without knowing what actually fixed it..) 2013-06-04 23:53:41 +02:00
Henrik Rydgard
a509d38357 UI, http with gzip, etc. 2013-06-04 22:32:04 +02:00
Henrik Rydgard
3b9750ee49 Fix a race condition in downloader, some ui style stuff 2013-06-04 22:32:04 +02:00
Sacha
a4e9197fb4 Buildfix for Blackberry and Meego.
Disable external display for Blackberry devices with 16:9 aspect ratio and no keyboard.
Cleanup BlackberryMain.
2013-06-04 22:50:22 +10:00
Henrik Rydgard
c87fe2f782 UIScreen helper class, derive your newUI screens from this. 2013-06-03 19:59:33 +02:00
Henrik Rydgard
2b3e1355ad More UI fixes 2013-06-03 19:59:32 +02:00
Sacha
0ef45bd23d Move C++11 functions to std namespace. 2013-06-02 22:25:57 +10:00
Sacha
58c40dabb1 Fix C++11 usage in native with platform-specific hacks. 2013-06-02 13:06:40 +10:00
Henrik Rydgard
4267d9903c More networking and UI stuff 2013-06-01 18:59:31 +02:00
Henrik Rydgard
4a208872c5 Android buildfixing 2013-06-01 00:50:08 +02:00
Henrik Rydgard
7b7c44eb50 Smooth autoscroll 2013-05-28 00:50:19 +02:00
Henrik Rydgard
f075c8fd56 Merge DrawContext into UIContext. 2013-05-28 00:32:00 +02:00
Henrik Rydgard
cbf1b2d29d Use scissor to clip scrollviews correctly. 2013-05-27 22:57:06 +02:00
Henrik Rydgard
0d4e1e8201 Add AnchorLayout, TriggerButton 2013-05-27 22:22:35 +02:00
Henrik Rydgard
0244a26544 More newUI work: better focus movement, autoscroll 2013-05-27 21:39:56 +02:00
Henrik Rydgard
2a821db448 NewUI: Gridlayout. Fully directional keyboard focus movement. 2013-05-27 00:54:02 +02:00
Henrik Rydgard
7bad683cae More new UI work 2013-05-25 16:57:20 +02:00
Henrik Rydgard
02a3cc1b5b ScrollView kinda working 2013-05-25 16:57:19 +02:00
Henrik Rydgard
f482d3c857 NewUI: Add basic keyboard focus movement 2013-05-25 16:57:19 +02:00
Henrik Rydgard
8b75763275 WIP new UI layout system! 2013-05-25 16:57:07 +02:00
aquanull
bfe5aea1d1 Shrink UICheckBox heights
This makes it much easier to check/uncheck the right items in a compact list.
2013-05-03 00:19:27 +08:00
Henrik Rydgard
3494d9282d Kanji stuff 2013-04-18 14:41:09 +02:00
Henrik Rydgard
b25cfe209b Basic internationalization (i18n) framework. 2013-04-18 11:56:50 +02:00
Henrik Rydgard
909b67743e Drop shadow support for TextureButton 2013-04-17 22:13:21 +02:00
Henrik Rydgard
345180dcef Add queue flush ability. Fix VGrid wrapping in UI. Fix some strange java error. 2013-04-14 11:58:07 +02:00
Henrik Rydgard
4cc3c5079a Apply color to fallback graphics for texturebuttons too 2013-04-13 21:59:41 +02:00
Henrik Rydgard
25711066df Add prioritizedworkqueue, thread stuff, ui tweaks, small optimizations in file util 2013-04-13 21:22:03 +02:00
Henrik Rydgård
8f8f65c45d Add height parameter to UIButton 2013-04-13 15:05:57 +02:00
Unknown W. Brackets
75dfa1206e Don't stretch the image in UITextureButton(). 2013-04-06 18:05:09 -07:00
Unknown W. Brackets
f45b5d6094 Add a simple grid-based layout manager. 2013-04-06 17:46:59 -07:00
Henrik Rydgard
79e14282ec Allow mapping thumb stick clicks. Make touch controls show the state of real controls. 2013-03-31 11:22:49 +02:00
Henrik Rydgard
d7a58a3154 Buttons don't have to clear state when not pressed after sticky fix. 2013-03-31 00:24:27 +01:00
Henrik Rydgard
34c4700adb TouchCrossPad - don't break other input 2013-03-30 22:32:56 +01:00
Henrik Rydgard
5bdd4bd663 Make generating mips optional for loaded-from-memory PNGs. 2013-03-30 20:10:01 +01:00
Henrik Rydgard
7ec766a980 Some drawing refactoring 2013-03-30 19:33:35 +01:00
Henrik Rydgard
36a6c179a0 Some drawing refactoring 2013-03-30 19:23:02 +01:00
Henrik Rydgard
faf8b260ed Add TouchCrossPad widget which actually can do diagonals reasonably. 2013-03-30 16:48:02 +01:00
Unknown W. Brackets
93ec9dc2ba Adjust the deadzone for taps and swipes.
Fixes #990, or does for me.
2013-03-15 08:53:02 -07:00
Henrik Rydgard
ac86ea83be Make it a bit easier to select stuff in lists. 2013-03-11 00:24:40 +01:00
Henrik Rydgård
4497f1c5ce Default touch ui scale to 1.0. 2013-01-26 17:47:02 +01:00
Henrik Rydgard
c21e1ee2cc Add scaling of touch buttons 2013-01-26 17:25:24 +01:00
Henrik Rydgård
657f5d32f4 Zero nextScreen_ on screenmanager shutdown. 2013-01-13 14:55:19 +01:00
Henrik Rydgard
74057385bf Initial UTF-8 support 2013-01-02 20:56:09 +01:00
Henrik Rydgård
1556328129 Make TouchButton not always override other input. Modify mappings. 2012-12-26 08:25:38 +01:00
Henrik Rydgard
c952c8d0e7 Fix volume buttons on android and add some functonality to the VFS. 2012-12-01 10:35:55 +01:00
Florent Castelli
8900d99779 Add OpenGL state cache to save some redundant state change. 2012-11-24 15:19:08 +01:00
Henrik Rydgard
8677fac72c Some UI code cleanup. Another variant of ease curve function. RebindTexture. 2012-11-22 18:41:04 +01:00
Henrik Rydgard
16e3d67063 Add UIContext, to make it easier to pass around what's needed to draw.
Not used in PPSSPP yet, for the curious.
2012-11-22 18:40:32 +01:00
Henrik Rydgard
1968e8c529 ScreenManager: Add support for direct async touch events 2012-11-22 18:39:39 +01:00
Sacha
fa2b68e19a Fix for file UI on Blackberry 2012-11-15 01:43:33 +10:00
MrOrdinaire
a13616e684 fix missing #include's and missing CMake linking directives 2012-11-03 10:34:06 +08:00
Henrik Rydgard
33b82fa077 Various 2012-10-31 20:42:43 +01:00
Henrik Rydgård
78239e7796 Could scroll outside the list area 2012-10-31 13:39:27 +01:00
Henrik Rydgård
e3335b5817 Inertia scrolling fixes 2012-10-31 13:35:11 +01:00
Henrik Rydgård
25523b8272 Fix a stick bug 2012-10-31 13:34:18 +01:00
Henrik Rydgård
ad001f7e16 PCMain: Simulate tablet resolution with option 2012-10-31 12:12:24 +01:00
Henrik Rydgård
ec05ad7487 Virtual stick fixes 2012-10-31 12:04:37 +01:00
Henrik Rydgard
b3ad7d4584 Merge branch 'master' of github.com:hrydgard/native 2012-10-31 10:15:38 +01:00
Henrik Rydgard
23e6b0e374 UI tweaks, bugfixing 2012-10-30 17:36:28 +01:00
Henrik Rydgard
2c3f569a9f Apparently there were still users of tempfloat 2012-10-30 16:30:55 +01:00
Henrik Rydgard
1ea568990d Colored touchbuttons, portafixes 2012-10-30 16:23:08 +01:00
Henrik Rydgård
edb0e8e8b2 Add basic inertial scrolling to list. Overscroll is a bit buggy. 2012-10-30 13:07:55 +01:00
Henrik Rydgård
8b5356b66c Alignment bugfix 2012-10-30 00:11:30 +01:00
Henrik Rydgård
4b123b25cc Reindent UI 2012-10-29 14:49:09 +01:00
Henrik Rydgård
60d3b5f601 UI work 2012-10-28 11:37:10 +01:00
Henrik Rydgard
4c62311132 Screens need to know when the device is lost. Cleanup. 2012-10-27 16:40:42 +02:00
Henrik Rydgård
748bdb3101 Virtual input code now working 2012-10-26 18:42:32 +02:00
Henrik Rydgard
70e6752884 Simple framework for virtual touchscreen buttons 2012-10-26 15:58:09 +02:00
Henrik Rydgard
976c0d96d1 Merge branch 'master' of github.com:hrydgard/native
Conflicts:
	ui/screen.cpp
2012-09-28 10:01:45 +02:00
Henrik Rydgard
1c1889c726 WIP 2012-09-28 10:01:01 +02:00
Henrik Rydgard
01f2b5ada0 Remove the screenManager global, other assorted cleanup 2012-09-18 09:46:58 +02:00
Henrik Rydgard
113f10abfe FileInfo struct, not properly used yet. ui code cleaning 2012-09-17 21:21:34 +02:00
Henrik Rydgard
f79111b217 Allow creating shaders from source strings directly 2012-08-27 23:28:52 +02:00
Henrik Rydgard
a67237fba7 Add some old code, do some buildfixing 2012-07-26 13:47:15 +02:00
Henrik Rydgard
9d04a56836 UITheme 2012-07-17 00:00:48 +02:00
Henrik Rydgard
9d531d717a Add some code to pop up an inputbox on android. 2012-07-16 15:00:52 +02:00
Henrik Rydgard
c762d1c0a5 Add a simple screen manager (kind of like activity stack) 2012-07-16 01:10:03 +02:00
Henrik Rydgard
e8ccae2266 Add "Listable" 2012-05-14 00:42:42 +02:00
Henrik Rydgard
caf0580c38 Tabs unification 2012-05-08 22:04:24 +02:00
Henrik Rydgard
eda90061f9 ... 2012-05-07 20:27:43 +02:00
Henrik Rydgard
ab96a3fc70 Count frames the pointer has been held. 2012-04-28 00:02:55 +02:00
Henrik Rydgard
fe1c7d2cdf Add initial multitouch support 2012-04-27 00:48:30 +02:00
Henrik Rydgard
dccb7bafdd Bugfixes 2012-04-14 07:39:22 +02:00
Henrik Rydgard
34f5b7abb3 naive improvement of ID generation 2012-04-12 23:19:44 +02:00
Henrik Rydgard
35ed4e02d1 Add front drawing layer for UI 2012-04-12 22:16:30 +02:00
Henrik Rydgard
8656ec051c LayoutManager 2012-04-12 19:45:21 +02:00
Henrik Rydgard
371c4db1ae Image buttons, file dialogs (win only) 2012-04-12 15:18:43 +02:00
Henrik Rydgard
9684be3257 Add MIDI Input support (Windows only). 2012-04-12 12:52:55 +02:00
Henrik Rydgard
97ea3356a9 Minor fixes. 2012-04-11 20:26:56 +02:00
Henrik Rydgard
cfbc3dbbaa Missing include. 2012-04-11 19:13:54 +02:00
Henrik Rydgard
2e6adc2463 UI and drawing (rotate image) 2012-04-11 17:07:28 +02:00
Henrik Rydgard
1f669609ae Record the start of drags 2012-04-10 14:22:23 +02:00
Henrik Rydgard
12f7b7904b Move my horrible IMGUI code here. 2012-04-10 12:36:38 +02:00