https://github.com/ritsuwastaken/dinput8
Proxy library that fixes a few issues in older L2 clients
https://github.com/ritsuwastaken/dinput8
dinput8 lineage2
Last synced: 5 months ago
JSON representation
Proxy library that fixes a few issues in older L2 clients
- Host: GitHub
- URL: https://github.com/ritsuwastaken/dinput8
- Owner: ritsuwastaken
- License: other
- Created: 2024-07-18T20:02:59.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-07-30T15:47:47.000Z (almost 2 years ago)
- Last Synced: 2024-07-31T04:12:42.641Z (almost 2 years ago)
- Topics: dinput8, lineage2
- Language: C++
- Homepage:
- Size: 30.3 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# dinput8 for L2 · 
A proxy library for L2, compatible with [DxWrapper](https://github.com/elishacloud/dxwrapper) and [ReShade](https://github.com/crosire/reshade).
- Blocks API calls to [SetDeviceGammaRamp](https://learn.microsoft.com/en-us/windows/win32/api/wingdi/nf-wingdi-setdevicegammaramp) from `d3ddrv.dll` to prevent changes to the system brightness.
- Skips `The game may not be consistent because AGP is deactivated. Please activate AGP for consistancy.` warning.
> ❗ You won't be able to adjust the brightness via the in-game menu or `l2.ini`. Use [ReShade](https://reshade.me/) instead.
> #### ReShade settings
> Select `Levels.fx` (installed by default), set **White point** to your preference, e.g. 140-160.
## Download
Get the latest version from [Releases](https://github.com/ritsuwastaken/dinput8/releases).
## Usage
Put `dinput8.dll` into the `system` folder of L2.
If the file is already in use (e.g. by L2HUB), you can rename `dinput8.dll` from this project to `version.dll`.
## Build
- [cmake](https://cmake.org/download/) >= 3.11
- [VS Build Tools](https://visualstudio.microsoft.com/downloads/#build-tools-for-visual-studio-2022)
```shell
# Configure the project
cmake . -B 'build' -G 'Visual Studio 17 2022' -A Win32
# Build the library to ./build/Release/dinput8.dll
cmake --build 'build' --config Release
```