Aaron Culliney
72389b941a
Refactor : clarify basic subsystem interface
2015-06-16 23:02:25 -07:00
Aaron Culliney
107db0dbde
Refactor : remove apparently unneeded call to GetStatus
2015-06-16 22:47:37 -07:00
Aaron Culliney
6059bf370b
Refactor : change API method to return error code instead of a success boolean
2015-06-16 22:43:50 -07:00
Aaron Culliney
17cfb8c3a3
Refactor : remove unused code and make constant code constant
2015-06-16 22:39:35 -07:00
Aaron Culliney
6a4fe7bfa1
Refactor : prettify get buffer lock function
2015-06-16 22:28:53 -07:00
Aaron Culliney
e0fe2e62f7
Refactor : remove moar deadcode!
2015-06-16 22:19:19 -07:00
Aaron Culliney
f41dc9b68a
Refactor : remove enumerated audio devices from file scope and eliminate \n from logs
2015-06-16 22:17:18 -07:00
Aaron Culliney
26d3cda215
Refactor : initialization and shutdown codepath cleanup
2015-06-16 21:45:45 -07:00
Aaron Culliney
43d98235fd
Refactor : cleaned up a bit of deadcode
2015-06-16 21:33:31 -07:00
Aaron Culliney
a2663298d1
Refactor : coalesce two structs into one for clarity
2015-06-16 21:18:52 -07:00
Aaron Culliney
ba42037473
Refactor : remove PVOICE typedef
2015-06-16 20:41:18 -07:00
Aaron Culliney
7552d64d74
Refactor : rename variable for clarity
2015-06-15 22:33:18 -07:00
Aaron Culliney
6a12ae4081
Refactor : simplify function-pointer assignment
2015-06-15 22:24:51 -07:00
Aaron Culliney
538b0aacd7
Refactor : rename some structures for clarity
2015-06-15 22:19:23 -07:00
Aaron Culliney
aedada03e9
Refactor : remove unused ivars
2015-06-15 22:07:09 -07:00
Aaron Culliney
d6b5c19584
Refactor : rename a number of structures and constify a few public API methods
2015-06-15 21:50:46 -07:00
Aaron Culliney
8dd82642d3
Refactor : rename audio subsystem initialization and shutdown functions
2015-06-14 15:05:44 -07:00
Aaron Culliney
59e95a19b1
Refactor : add annotations to a few more functions
2015-06-14 14:56:53 -07:00
Aaron Culliney
33a13abbc2
Refactor : Better segregation and modularization of the audio backend functions
2015-06-14 14:46:15 -07:00
Aaron Culliney
7fd1b350c2
Refactor : hide non-public OpenAL internal API
2015-06-14 14:07:33 -07:00
Aaron Culliney
ec4ff3de10
Refactor : shuffle moar macros into mockingboard.c
2015-06-14 14:07:33 -07:00
Aaron Culliney
af1c6bf159
Refactor : audio system functions return nonzero on failure
2015-06-14 14:07:33 -07:00
Aaron Culliney
c8834a91e3
Refactor: Rename and remove some macros and variables
2015-06-14 14:07:33 -07:00
Aaron Culliney
27a3fea005
Refactor : kill ds-shim.h
2015-06-14 14:07:33 -07:00
Aaron Culliney
93a578d40a
Refactor : remove and rename certain globals
2015-06-14 14:07:33 -07:00
Aaron Culliney
4d0ca2b6e3
Refactor : move another function to mockingboard module
2015-06-14 14:07:33 -07:00
Aaron Culliney
1679b8e76a
Refactor : excised more DS deadc0de
2015-06-14 14:07:33 -07:00
Aaron Culliney
3767f55846
Refactor : rename and coalesce audio buffer initialization structs
2015-06-14 14:07:33 -07:00
Aaron Culliney
49d2fe6e09
Refactor : excise deadc0de
2015-06-14 14:07:32 -07:00
Aaron Culliney
1707c60701
Refactor : completely excise win-shim
...
- Moves remaining shim code into mockingboard.c
- Breaks Mac builds for now =P
2015-06-14 14:07:32 -07:00
Aaron Culliney
994e1a4568
Refactor FALSE -> false
2015-06-14 14:07:32 -07:00
Aaron Culliney
f89c734996
Refactor : excise various macro defs
2015-06-14 14:07:32 -07:00
Aaron Culliney
b9371d3a38
Refactor : LPDWORD > unsigned long*
2015-06-14 14:07:32 -07:00
Aaron Culliney
7513f5e938
Refactor UINT -> unsigned int
2015-06-14 14:07:32 -07:00
Aaron Culliney
92f21a65ca
Refactor : LPVOID > void*
2015-06-14 14:07:32 -07:00
Aaron Culliney
e63afea069
Refactor : excise LPBYTE, LPLONG
2015-06-14 14:07:32 -07:00
Aaron Culliney
8cba7de872
Refactor : excise unused macro defs
2015-06-14 14:07:32 -07:00
Aaron Culliney
7263e161e4
Refactor : LONG -> long
2015-06-14 14:07:32 -07:00
Aaron Culliney
5312ddee00
Refactor : ULONG -> unsigned long
2015-06-14 14:07:32 -07:00
Aaron Culliney
109dfa855b
Refactor : DWORD -> unsigned long
2015-06-14 14:07:32 -07:00
Aaron Culliney
7051e6d906
Refactor : SHORT -> int16_t
2015-06-14 14:07:32 -07:00
Aaron Culliney
57cd12f1cc
Refactor : BYTE -> uint8_t
2015-06-14 14:07:32 -07:00
Aaron Culliney
6d252b0b3e
Refactor : WORD -> uint16_t
2015-06-14 14:07:32 -07:00
Aaron Culliney
4b28e33906
Refactor USHORT -> uint16_t
2015-06-14 14:07:32 -07:00
Aaron Culliney
a5d36c7dff
Refactor : remove unused macro defs
2015-06-14 14:07:32 -07:00
Aaron Culliney
a46a882a3d
Refactor length types
2015-06-14 14:07:32 -07:00
Aaron Culliney
c5fb837314
Refactor BOOL -> bool
2015-06-14 14:07:32 -07:00
Aaron Culliney
87e7ec24ff
Refactor HRESULT -> int
2015-06-14 14:07:32 -07:00
Aaron Culliney
20bbfcd286
Fixes for Tap Delay thread
...
- Now signals TD thread on each touch event that resulted in a change to the buttons.trackingIndex or a change to
the chosen button (buttons.touchDownButton, buttons.northButton, or buttons.southButton)
- Uses mutex (un)locking to avoid races around buttons.trackingIndex and chosen button
- Adds an equal delay on TD thread loop finish to ensure the touchDown/touchUp or touchDown/move/touchUp event
sequence is the same basic duration as received
2015-06-14 13:59:51 -07:00
Aaron Culliney
5e1d8552ef
Ensure file globals are in file scope
2015-06-14 13:59:29 -07:00
Aaron Culliney
c47afc4ccb
Bugfix disk selection on Linux desktop
2015-06-07 11:25:50 -07:00
Aaron Culliney
f28b708449
Delay joystick button touches FTW
...
- Previously a touch down event would trigger a joystick button, but now this slight delay in processing allows us
to discard this if the user really issued a tap-move combo
2015-06-06 21:44:11 -07:00
Aaron Culliney
1da7acbaba
Properly hook up Android shutdown paths
2015-06-06 21:18:27 -07:00
Aaron Culliney
26d7e7da3d
Reminder for a future rethink/refactor
2015-06-06 13:00:53 -07:00
Aaron Culliney
3108e035ed
Implement sticky-CTRL key for touch keyboard
2015-06-06 12:02:03 -07:00
Aaron Culliney
1cdbaa460a
Change joystick glyph
2015-06-03 22:21:33 -07:00
Aaron Culliney
5773ef2e8d
Simplify touch menu to just one model/texture
...
- Also seamlessly complements gltouchkbd layout
2015-06-03 22:13:19 -07:00
Aaron Culliney
f2abf4ce35
Fix emulator quit path on Android
2015-06-01 22:50:44 -07:00
Aaron Culliney
29006f9c5c
path handling cleanups
2015-06-01 22:25:29 -07:00
Aaron Culliney
064070be7c
Kill a magic number and ensure file_name is nul-terminated
2015-06-01 22:08:58 -07:00
Aaron Culliney
3f38467c93
Silence Valgrind complaint about gzread()
2015-06-01 22:04:01 -07:00
Aaron Culliney
adb09dc84e
Avoid buffer overflow +1, thank you Valgrind
2015-06-01 21:17:48 -07:00
Aaron Culliney
9d26e2c6f0
Tweak comments
2015-05-31 16:33:39 -07:00
Aaron Culliney
4c8856fb04
Comment unused/untested codepaths
2015-05-31 16:31:57 -07:00
Aaron Culliney
3b13fc29a4
Don't leak stuff-n-things, thank you Valgrind =)
...
- Major : Previously leaking interface threads
- Major : Leak of FILE* resources in inflate routine
- Minor : previous leak-on-exit of enumerated sound devices
2015-05-31 14:11:57 -07:00
Aaron Culliney
80b880550f
Fix shutdown codepaths
...
- Ensures various shutdown codepaths (interface, cpu/audio, main/video, ...) run on proper thread(s)
- Actually now runs the CloseAL() code
- Try to ensure all detached threads exit ... seems to help keep Valgrind happy =)
2015-05-31 13:43:51 -07:00
Aaron Culliney
a796a9f14c
c_mygetch is strictly INTERFACE_CLASSIC
2015-05-31 12:57:33 -07:00
Aaron Culliney
6a453c3973
Don't exit in video_shutdown()
2015-05-31 11:25:23 -07:00
Aaron Culliney
a4f185d197
Bugfix: allow unsigned indexing
2015-05-31 11:23:49 -07:00
Aaron Culliney
5816962f32
Make RGBA_4444 codepaths available to HUD models
2015-05-30 23:18:08 -07:00
Aaron Culliney
bcb36a4801
add codepath for RGBA_4444 textures
2015-05-30 18:58:34 -07:00
Aaron Culliney
a3b2afe18f
Adds a semi-opaque halo effect around keyboard and menu glyphs for better contrast
2015-05-30 12:18:42 -07:00
Aaron Culliney
31cef9eb58
Avoid overflowing when rerendering character.
2015-05-29 22:14:53 -07:00
Aaron Culliney
cb72d483c0
Refactor INTERPOLATED_PIXEL_ADJUSTMENT calculations just to codepaths actually touching the internal framebuffers
2015-05-29 21:47:49 -07:00
Aaron Culliney
aee1111cb0
Better derivation of framebuffer macros
2015-05-29 21:46:37 -07:00
Aaron Culliney
1ca1e7d2cc
Use parens around SCANSTEP macro
2015-05-29 21:46:14 -07:00
Aaron Culliney
1506aba551
Refactor: rename to video_reset() for clarity
2015-05-29 21:46:07 -07:00
Aaron Culliney
27ade69757
Refactor various display initialization routines to CTOR
2015-05-29 21:46:01 -07:00
Aaron Culliney
966ba0a2d8
No disk in drive (or invalid track) should return 0xFF
...
- Bug introduced in e01e437
- Bugfix allows U5 Journey Onward to work =P
2015-05-25 13:36:17 -07:00
Aaron Culliney
0cb3086622
gltouchjoy and keyboard are now toggle options
2015-05-23 23:30:18 -07:00
Aaron Culliney
692a6793cb
Default enable touch joystick instead of keyboard
2015-05-23 23:25:32 -07:00
Aaron Culliney
4d3de200d9
Extra/configurable defaults to uppercase for U4 keys...
2015-05-21 22:32:38 -07:00
Aaron Culliney
13a7dbfbb0
defensive coding
2015-05-21 22:31:06 -07:00
Aaron Culliney
df218fed05
Improved keyboard with semi-inline arrows
2015-05-17 22:05:15 -07:00
Aaron Culliney
8e73b70f95
Touch keyboard now supports special keys
2015-05-10 15:25:50 -07:00
Aaron Culliney
68011fa8f2
First cut at touch menu HUD
...
- Enables choosing touch keyboard or touch joystick
- Enables increasing/decreasing speed
- Enables opening main popup menu
- Also migrates all gesture responsibility away from Java side of things
2015-05-09 19:23:52 -07:00
Aaron Culliney
1126a319ec
Misc tweaks to various GL interface objects
2015-04-26 18:12:56 -07:00
Aaron Culliney
e7c0d8fe48
Comments, and avoid NULL deref on app resume
2015-04-22 23:40:48 -07:00
Aaron Culliney
4e23795cfd
First cut at GL touch keyboard
2015-04-22 23:32:36 -07:00
Aaron Culliney
725cf68011
Move common function to base class
2015-04-19 14:28:47 -07:00
Aaron Culliney
142f0181bc
support showing hourglass pause animation
2015-04-19 14:28:09 -07:00
Aaron Culliney
eee0dd45e3
zero-initialize buffers
2015-04-19 14:26:40 -07:00
Aaron Culliney
2b658954f9
Various additions/changes to interface glyphs
2015-04-19 14:25:53 -07:00
Aaron Culliney
629e44b210
Slightly more idiomatic way to upload texture pixels
2015-04-18 15:29:55 -07:00
Aaron Culliney
c2bd14f9b5
REFACTOR : glcpuanim now manages all generic alert messages
2015-04-18 15:15:09 -07:00
Aaron Culliney
592c80344f
Add new custom bitmap glyphs, and change load positions
2015-04-18 14:50:02 -07:00
Aaron Culliney
dcd0207525
Fix ctor load priorities
2015-04-17 22:12:13 -07:00
Aaron Culliney
2bc846d1fe
Revert "Fix non-deterministic ctor load issues and use singleton for video_backend module access"
...
This reverts commit af95212a19
.
TODO : make ctor loads deterministic
2015-04-17 21:40:56 -07:00
Aaron Culliney
e2272132c2
Do not destroy OpenGL needful things for VAO codepath
...
- Gets Mac build rendering again
2015-04-16 21:53:44 -07:00
Aaron Culliney
af95212a19
Fix non-deterministic ctor load issues and use singleton for video_backend module access
2015-04-16 21:53:12 -07:00