summaryrefslogtreecommitdiffhomepage
path: root/opentrack
AgeCommit message (Collapse)Author
2015-12-18api/mat: fix typos/breakageStanislaw Halik
2015-12-17api/joy: refresh only manually on certain eventsStanislaw Halik
Refresh joylist when new listener arrives, and when the joy singleton just gets created. Enumerating joys all the time causes high CPU usage for some of the users. Issue: #279 Backtrace-by: @exulant Reported-by: @aka2k
2015-12-17cmake/api: link with strmiids.lib on win32Stanislaw Halik
It worked by accident since cmake/compat already links to it.
2015-12-06api/keys: prevent idempotent keysopentrack-2.3-rc21p4Stanislaw Halik
2015-12-06api/joy: move from headerStanislaw Halik
2015-12-06api/joy: prevent idempotent keypressed passed to receiverStanislaw Halik
2015-12-06api/joy: speed up poll_axis pathStanislaw Halik
We don't really need to poll for joysticks in tracker/joy.
2015-12-06api/joy: nix static, now that we're not a singletonStanislaw Halik
2015-12-06joystick: no longer singleton, use fake window handleStanislaw Halik
We can create arbitrary amount of dinput handles, given they're passed unique window handles.
2015-12-06api/keys: use a fake window for DirectInput handleStanislaw Halik
2015-12-06api/keys: nix tautological #ifdefStanislaw Halik
2015-12-06api/camera-names: move to compat/Stanislaw Halik
2015-12-06api/camera: move from headerStanislaw Halik
There's no need to have a copy in each module.
2015-12-06api/keys: initialize hresultStanislaw Halik
2015-12-06api/keys: fix buildStanislaw Halik
2015-12-06api, main: implement global shortcuts for controlling trackingStanislaw Halik
Issue: #252 That involves moving stuff around to get rid of circular dependencies. You need to bind keys to shortcuts again this once.
2015-12-05api/shortcuts: no longer keep shortcuts hardcodedStanislaw Halik
2015-12-05api/keys: fix multiple shortcut receiversStanislaw Halik
We can't depend on std::vector's address of array subscript to remain constant, duh.
2015-12-03api/joystick: refresh more often, it's cheap enough cpu-wiseStanislaw Halik
2015-12-03api/joy: there's no joy_handle == nullptr case, don't check for itStanislaw Halik
2015-12-03api, compat: clean up verbose fprintf logspamStanislaw Halik
2015-12-03api/joy: fix raceStanislaw Halik
erase from iterator referenced the wrong 'joys' variable
2015-11-29api/joystick: drop locking, add commentStanislaw Halik
2015-11-29api/joystick: oops, access the right 'joys' variableStanislaw Halik
2015-11-29api/joystick: reduce mutex contentionStanislaw Halik
Don't look for changes in hotplug joysticks by freezing up polling for joysticks' axis and button. Issue: #267
2015-11-26api/shortcuts: remove pointless "friend" declarationsStanislaw Halik
2015-11-26api/shortcuts: move to separate definitionStanislaw Halik
There's no need to have definitions in header for non-template classes
2015-11-24api/shortcuts: don't unacquire joy handle pointlesslyStanislaw Halik
2015-11-22api/shortcuts: fix copy-paste erroropentrack-2.3-rc21p1Stanislaw Halik
2015-11-22api/shortcuts: don't provide guard/stubs for non-win32Stanislaw Halik
The worker class is win32-only. Don't guard there, consumers are expected only to include it on _WIN32. For the same reason don't provide a stub for the keybinding worker.
2015-11-22api/joy: guard _WIN32 properlyStanislaw Halik
2015-11-22api/shortcuts: hopefully guard joystick _WIN32Stanislaw Halik
2015-11-22opentrack/joystick: rename header to clarify usageStanislaw Halik
2015-11-22api/shortcuts: add missing win32 delete key definitionStanislaw Halik
2015-11-22api/shortcuts, tracker/joy: adapt to synchronized joy apiStanislaw Halik
2015-11-22api/joy: protect dinput with mutex in all casesStanislaw Halik
Also practice object-oriented information hiding to avoid accesses without the mutex. Also provide basic joy information (guid, name) without exposing dinput handles and so on.
2015-11-22api/joy: implement a central joystick workerStanislaw Halik
- Make the dinput handle a singleton also across module boundaries. - Provide axis values per connected stick. - Robustify in case of sudden unplug.
2015-11-22work: use the centralized keypress workerStanislaw Halik
2015-11-22api/keyboard: implement a central workerStanislaw Halik
DirectInput dies when two LPDIRECTINPUT8 handles are obtained. Implement a singleton worker providing keypress events.
2015-11-19shortcuts: nix single-use mutexStanislaw Halik
It also slept with lock held. Good riddance.
2015-11-12joy: remove branchingStanislaw Halik
2015-11-12joy: for newly plugged sticks, only emit events after 3 secondsStanislaw Halik
My X65 emits modeswitch events only a while after getting plugged in. This only affects newly hotplugged joysticks. Ones plugged in before listening start start processing events immediately. Issue: #118
2015-11-11joy: guard _WIN32. retab.opentrack-2.3-rc21Stanislaw Halik
2015-11-11shortcuts: alloy kbd mods for joystick buttonsStanislaw Halik
2015-11-11joy: slurp keys on startupStanislaw Halik
2015-11-11joy: add cheap debug infoStanislaw Halik
2015-11-11joy: memset won't hurtStanislaw Halik
2015-11-11joy: pass shortcut only if pressed, not depressedStanislaw Halik
Issue: #118 Reported-by: @Len62
2015-11-11joy: refresh immediately once on startupStanislaw Halik
2015-11-11shortcuts: register joysticks every 250 ms, not 2 secondsStanislaw Halik
Issue: #118