Commit Graph
1926 Commits
Author SHA1 Message Date
Glenn Maynard 0330792ab6 unneeded include, fix compile 2005-12-30 04:06:00 +00:00
Glenn Maynard c0a86d6c44 use HOOKS->SetHasFocus 2005-12-30 03:59:10 +00:00
Glenn Maynard fcdb6602ab Move focus handling from StepMania.cpp to ArchHooks. Arch-specific
code calls HOOKS->SetHasFocus when focus is lost or regained; user
code calls HOOKS->AppHasFocus as needed.  This moves the very
simple task of remembering focus to ArchHooks, and removes a
few annoying dependencies on StepMania.cpp.  (That's the highest-
level code there is, so very few things should depend on it.)

The original design of HOOKS is to be a place where portable
code calls to do platform-specific things, not to be a place
for nonportable code to call to do generic things.  These
state calls (SetHasFocus, SetToggleWindowed, SetUserQuit) don't
quite fit that.  But there's currently no better place to put
these, and they're just as low-level, so it's not really a
layering violation.  Hmm.

(This also eliminates GameLoop's dependency on StepMania.cpp.  Keeping
GL.cpp independent of SM.cpp is helpful.  It's not as useful to
split apart two files, if the two files are cross-dependent anyway;
you still have to know how both files work in order to understand
either of them.)
2005-12-30 03:57:01 +00:00
Glenn Maynard f06fd4b416 No input driver should ever send a button pressed event without later
sending a corresponding release event.  This results in "stuck
keys" in InputFilter's image of the devices.  We've worked around
this by forcibly releasing all keys when focus is lost, but it's
still a bug in the input driver.  Fix this, by releasing devices
when we discard events.
2005-12-30 02:30:23 +00:00
Steve Checkoway 8d70bcdbf4 Lookup the bundle identifier and the version number at runtime. Simplify logic (slightly). 2005-12-29 11:54:54 +00:00
Steve Checkoway 0e366eef75 Fix compile and warnings. 2005-12-29 11:36:20 +00:00
Steve Checkoway bc22d83f6f Cleanup. 2005-12-29 11:35:52 +00:00
Steve Checkoway 9d4719c112 Fix crash if Data/splash.png is not found. 2005-12-29 11:35:10 +00:00
Chris Danford c7d769829a add ThemeManager to smtools 2005-12-29 05:52:50 +00:00
Glenn Maynard 6177fe5884 fixup 2005-12-29 00:42:03 +00:00
Glenn Maynard 983a34dde4 style 2005-12-28 23:34:10 +00:00
Glenn Maynard b73fe69ff2 style 2005-12-28 23:33:11 +00:00
Glenn Maynard 88fb796c6b cleanup 2005-12-28 21:08:10 +00:00
Glenn Maynard 445df4ea85 Don't poll and acquire the same device in both the input thread and Update. 2005-12-28 19:02:50 +00:00
Glenn Maynard 906179d035 cleanup 2005-12-28 19:00:40 +00:00
Glenn Maynard 596d672d7f remove unused 2005-12-28 18:59:25 +00:00
Glenn Maynard f9140c92ab update use of old function 2005-12-28 09:23:14 +00:00
Glenn Maynard 028cae7117 cosmetic 2005-12-28 09:15:33 +00:00
Glenn Maynard 8f6dcdbecc blind updates (probably incomplete, since this driver differs more widely
from my code)
2005-12-28 09:14:15 +00:00
Glenn Maynard 13087c9585 blind updates 2005-12-28 09:09:55 +00:00
Glenn Maynard 6571f6b475 merge input symbols 2005-12-28 09:04:51 +00:00
Glenn Maynard c294e8eb74 merge input symbols 2005-12-28 08:55:13 +00:00
Glenn Maynard d9862d3ac8 static, typo 2005-12-28 08:21:39 +00:00
Chris Danford 45082d0a74 #define hacks for smtools. Clean this up later. 2005-12-28 05:42:22 +00:00
Chris Danford f7952eaf63 CString -> RString
make GetDefaultLanguage static for smtools
2005-12-28 05:41:04 +00:00
Glenn Maynard bc372e308b cosmetic changes only 2005-12-28 03:30:37 +00:00
Steve Checkoway 2301565b2a Fix threaded input not actually running in the created thread. Allow nonthreaded input (by using the gui--i.e. main event loop--thread) according to PREFSMAN->m_bThreadedInput. 2005-12-27 05:55:06 +00:00
Glenn Maynard 4671102354 cleanup 2005-12-24 07:36:27 +00:00
Glenn Maynard e7e136566b no, seriously, save to disk 2005-12-24 06:07:39 +00:00
Glenn Maynard 0a087099b6 fix possible crash if GetVolumeInformation fails: szVolumeNameBuffer would
be uninitialized
2005-12-24 06:06:45 +00:00
Glenn Maynard 635434ea17 fix for confusingly similar error codes
do log when the file already exists
2005-12-24 03:16:20 +00:00
Glenn Maynard b923d82f90 cleanup 2005-12-24 03:10:22 +00:00
Glenn Maynard 53800b79a3 try to avoid writing to the device to do a wirte check 2005-12-24 03:09:33 +00:00
Glenn Maynard 792f8a4008 unused header
this stuff shouldn't be an input handler anymore ...
2005-12-24 02:38:31 +00:00
Glenn Maynard 33f7552be5 fix potential crash if QueryDosDevice fails, or returns more data than expected 2005-12-24 02:37:06 +00:00
Glenn Maynard 5ce5dc5060 simplify 2005-12-24 02:32:55 +00:00
Glenn Maynard 99d586c5a9 attempt to flush memory cards on unmount 2005-12-24 02:08:17 +00:00
Steve Checkoway 3f14485b5d Make default values correspond to the defaults in DialogDriver.h. When the user clicks Ignore, make sure it really does get ignored. Implement AbortRety. 2005-12-24 02:08:01 +00:00
Renaud Lepage 2fd7cdab74 Little correction. 2005-12-23 17:42:25 +00:00
Steve Checkoway b0177e38a4 Add support for toggling windowed mode other than alt-enter. E.g. from a menu item. 2005-12-23 14:19:43 +00:00
Steve Checkoway 8c47a17f67 I think this should be s not g. 2005-12-23 13:36:56 +00:00
Steve Checkoway 1f78c80200 Put written files in ~/Library/Application Support/PRODUCT_ID. 2005-12-23 13:11:59 +00:00
Glenn Maynard f446ae9436 use GetMyDocumentsDir, GetApplicationDataDir 2005-12-23 01:58:45 +00:00
Chris Danford 74749a19bb move localized string to separate file 2005-12-22 03:10:04 +00:00
Glenn Maynard eca5a911d8 unused 2005-12-21 06:13:47 +00:00
Glenn Maynard bdf5a3b924 Remove MemoryCardDriver::Flush. Flush in Unmount instead. 2005-12-21 05:58:01 +00:00
Glenn Maynard 8c78478d61 unneeded header
clarify coop mode
2005-12-21 00:29:35 +00:00
Glenn Maynard 8822ce2e86 cleanup, static 2005-12-20 20:30:45 +00:00
Glenn Maynard d2163d0c2f style 2005-12-20 20:29:47 +00:00
Glenn Maynard ff42312b44 use RegistryAccess::GetRegValue 2005-12-20 20:26:11 +00:00