Input refactoring, phase 1
Instead of two structs with many members, these structs are now an array indexed by an enum. This makes it easier to take actions on the entirety of the input state. The input core itself (input/ and gameinp.c) look a lot messier at the moment; phase 2 will be to clean them up. This phase is mostly to get "typographical" changes across the code out of the way first to minimize update disruption. This refactoring has the eventual goal of eliminating the special purpose input code scattered throught battles, SuperMelee's menus, and IP exploration. git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@1312 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
Changes towards version 0.4:
|
||||
- Input code refactoring, phase 1: Replaced messy structs with an
|
||||
array indexed by an enum. -Michael
|
||||
- Thread code refactoring: only the main thread will actually spawn
|
||||
threads, and thread IDs are properly recycled with SDL_WaitThead ()
|
||||
once they're done. (With luck, this will fix bug #561) -Michael
|
||||
|
||||
Reference in New Issue
Block a user