From: <sv...@ww...> - 2005-06-20 01:53:04
|
Author: mkrose Date: 2005-06-19 18:52:54 -0700 (Sun, 19 Jun 2005) New Revision: 1575 Modified: trunk/CSP/CSPSim/CHANGES.current trunk/CSP/CSPSim/Include/CockpitInterface.h trunk/CSP/CSPSim/Include/GameScreen.h trunk/CSP/CSPSim/Include/HID.h trunk/CSP/CSPSim/Include/InputEventChannel.h trunk/CSP/CSPSim/Include/InputInterface.h trunk/CSP/CSPSim/Include/MapEvent.h trunk/CSP/CSPSim/Include/Systems/AircraftInputSystem.h trunk/CSP/CSPSim/Source/CockpitInterface.cpp trunk/CSP/CSPSim/Source/GameScreen.cpp trunk/CSP/CSPSim/Source/HID.cpp trunk/CSP/CSPSim/Source/InputInterface.cpp trunk/CSP/CSPSim/Source/Systems/AircraftInputSystem.cpp Log: Refactor input event dispatch to pass an event struct to the handler rather than individual arguments. Minor simplifications and cleanup of the input interface and hid code. Added a "drag" flag to click events to indicate if the mouse has been moving with a button pressed. This is used to prevent accidental cockpit switch picking when panning the view with the mouse. Browse at: https://www.zerobar.net/viewcvs/viewcvs.cgi?view=rev&rev=1575 Diff omitted (37668 bytes). |