Rename: OverlayDetector -> SteamOverlayDetector

pull/130/head
Peter Repukat 3 years ago
parent 7559eee8c2
commit a8c2bc3f82

@ -155,7 +155,7 @@
<ClCompile Include="HidHide.cpp" />
<ClCompile Include="InputRedirector.cpp" />
<ClCompile Include="main.cpp" />
<ClCompile Include="OverlayDetector.cpp" />
<ClCompile Include="SteamOverlayDetector.cpp" />
<ClCompile Include="SteamTarget.cpp" />
<ClCompile Include="TargetWindow.cpp" />
</ItemGroup>
@ -163,7 +163,7 @@
<ClInclude Include="..\deps\subhook\subhook.h" />
<ClInclude Include="HidHide.h" />
<ClInclude Include="InputRedirector.h" />
<ClInclude Include="OverlayDetector.h" />
<ClInclude Include="SteamOverlayDetector.h" />
<ClInclude Include="SteamTarget.h" />
<ClInclude Include="steam_sf_keymap.h" />
<ClInclude Include="TargetWindow.h" />

@ -24,7 +24,7 @@
<ClCompile Include="TargetWindow.cpp">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="OverlayDetector.cpp">
<ClCompile Include="SteamOverlayDetector.cpp">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\deps\subhook\subhook.c">
@ -44,7 +44,7 @@
<ClInclude Include="TargetWindow.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="OverlayDetector.h">
<ClInclude Include="SteamOverlayDetector.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="steam_sf_keymap.h">

@ -13,7 +13,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
#include "OverlayDetector.h"
#include "SteamOverlayDetector.h"
#include <spdlog/spdlog.h>
@ -22,12 +22,12 @@ limitations under the License.
#include <Windows.h>
#endif
OverlayDetector::OverlayDetector(std::function<void(bool)> overlay_changed)
SteamOverlayDetector::SteamOverlayDetector(std::function<void(bool)> overlay_changed)
: overlay_changed_(std::move(overlay_changed))
{
}
void OverlayDetector::update()
void SteamOverlayDetector::update()
{
#ifdef _WIN32
// Steam hooks into Windows messages

@ -22,9 +22,9 @@ limitations under the License.
#include <Windows.h>
#endif
class OverlayDetector {
class SteamOverlayDetector {
public:
explicit OverlayDetector(
explicit SteamOverlayDetector(
std::function<void(bool)> overlay_changed = [](bool) {});
void update();

@ -15,7 +15,7 @@ limitations under the License.
*/
#pragma once
#include "OverlayDetector.h"
#include "SteamOverlayDetector.h"
#include "TargetWindow.h"
@ -69,7 +69,7 @@ class SteamTarget {
InputRedirector input_redirector_;
#endif
TargetWindow window_;
OverlayDetector detector_;
SteamOverlayDetector detector_;
WindowHandle last_foreground_window_ = nullptr;
static inline WindowHandle target_window_handle_ = nullptr;

Loading…
Cancel
Save