Skip to content

Commit 94a6890

Browse files
authored
Merge pull request #11 from idietmoran/dev-win32
Dev win32
2 parents 08af2eb + f55d3fa commit 94a6890

File tree

8 files changed

+73
-8
lines changed

8 files changed

+73
-8
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,3 @@
33
/x64/
44
*.vcxproj.*
55
.vs/
6-
*.sln

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Changelog
2+
All notable changes to this project will be documented in this file.
3+
## [1.1.0]
4+
### Added
5+
- Added meta tags for windows
6+
7+
### Fixed
8+
- Fixed issue when the program closed before unlocking the cursor
9+
- Fixed issue where the program would not shut down properly

Display Lock.sln

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio 15
4+
VisualStudioVersion = 15.0.27428.2027
5+
MinimumVisualStudioVersion = 10.0.40219.1
6+
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Display Lock", "Display Lock.vcxproj", "{98475F5E-089A-40A5-B228-925B46B8EC37}"
7+
EndProject
8+
Global
9+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
10+
Debug|x64 = Debug|x64
11+
Debug|x86 = Debug|x86
12+
Release|x64 = Release|x64
13+
Release|x86 = Release|x86
14+
EndGlobalSection
15+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
16+
{98475F5E-089A-40A5-B228-925B46B8EC37}.Debug|x64.ActiveCfg = Debug|x64
17+
{98475F5E-089A-40A5-B228-925B46B8EC37}.Debug|x64.Build.0 = Debug|x64
18+
{98475F5E-089A-40A5-B228-925B46B8EC37}.Debug|x86.ActiveCfg = Debug|Win32
19+
{98475F5E-089A-40A5-B228-925B46B8EC37}.Debug|x86.Build.0 = Debug|Win32
20+
{98475F5E-089A-40A5-B228-925B46B8EC37}.Release|x64.ActiveCfg = Release|x64
21+
{98475F5E-089A-40A5-B228-925B46B8EC37}.Release|x64.Build.0 = Release|x64
22+
{98475F5E-089A-40A5-B228-925B46B8EC37}.Release|x86.ActiveCfg = Release|Win32
23+
{98475F5E-089A-40A5-B228-925B46B8EC37}.Release|x86.Build.0 = Release|Win32
24+
EndGlobalSection
25+
GlobalSection(SolutionProperties) = preSolution
26+
HideSolutionNode = FALSE
27+
EndGlobalSection
28+
GlobalSection(ExtensibilityGlobals) = postSolution
29+
SolutionGuid = {C455D98E-E499-4F3E-B58C-5B95ACA5D11F}
30+
EndGlobalSection
31+
EndGlobal

Display Lock.vcxproj

Lines changed: 28 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,9 @@
7373
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
7474
<LinkIncremental>true</LinkIncremental>
7575
</PropertyGroup>
76+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
77+
<LinkIncremental>true</LinkIncremental>
78+
</PropertyGroup>
7679
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
7780
<ClCompile>
7881
<PreprocessorDefinitions>WIN32;_WINDOWS;_DEBUG;_WINDOWS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
@@ -138,11 +141,21 @@
138141
<ClCompile Include="src\displayLock-win32.c" />
139142
</ItemGroup>
140143
<ItemGroup>
141-
<ClInclude Include="src\bin\menu.h" />
142-
<ClInclude Include="src\bin\win.h" />
143-
<ClInclude Include="src\displayLock-win32.h" />
144-
<ClInclude Include="src\header.h" />
145-
<ClInclude Include="src\resource.h" />
144+
<ClInclude Include="src\bin\menu.h">
145+
<FileType>CppCode</FileType>
146+
</ClInclude>
147+
<ClInclude Include="src\bin\win.h">
148+
<FileType>CppCode</FileType>
149+
</ClInclude>
150+
<ClInclude Include="src\displayLock-win32.h">
151+
<FileType>CppCode</FileType>
152+
</ClInclude>
153+
<ClInclude Include="src\header.h">
154+
<FileType>CppCode</FileType>
155+
</ClInclude>
156+
<ClInclude Include="src\resource.h">
157+
<FileType>CppCode</FileType>
158+
</ClInclude>
146159
<ClInclude Include="src\targetver.h" />
147160
</ItemGroup>
148161
<ItemGroup>
@@ -152,7 +165,16 @@
152165
<None Include="src\displayLock-win32.aps" />
153166
</ItemGroup>
154167
<ItemGroup>
155-
<Manifest Include="src\displayLock-win32.manifest" />
168+
<Manifest Include="src\displayLock-win32.manifest">
169+
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">false</ExcludedFromBuild>
170+
<DeploymentContent Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</DeploymentContent>
171+
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">false</ExcludedFromBuild>
172+
<DeploymentContent Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</DeploymentContent>
173+
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">false</ExcludedFromBuild>
174+
<DeploymentContent Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</DeploymentContent>
175+
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|x64'">false</ExcludedFromBuild>
176+
<DeploymentContent Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</DeploymentContent>
177+
</Manifest>
156178
</ItemGroup>
157179
<ItemGroup>
158180
<Image Include="src\displayLock-win32.ico" />

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,16 @@
11
# Display Lock
22
---------------------
3-
Lightweight program that locks cursor in selected window, or any focused window with a hotkey toggle.
3+
Lightweight program that locks cursor in selected window, designed with performance in mind.
44

55
#### USES
66
-----------------
77
- Keeps cursor in a windowed game to prevent clicking outside
8+
- Will stay active while the window is focused
89
- Keeps cursor in a fullscreen game while using a multi-monitor setup
910

11+
### EXAMPLE
12+
---------------
13+
![](/res/example.gif)
1014

1115
![](/res/displayLock-preview.png)
1216

res/example.gif

17.7 MB
Loading

src/displayLock-win32.aps

828 Bytes
Binary file not shown.

src/displayLock-win32.rc

1.83 KB
Binary file not shown.

0 commit comments

Comments
 (0)