Skip to content

Commit

Permalink
fixed mouse key codes
Browse files Browse the repository at this point in the history
  • Loading branch information
DennisSoemers committed Feb 23, 2023
1 parent eea9dec commit 28f963b
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ message("Using toolchain file ${CMAKE_TOOLCHAIN_FILE}.")
########################################################################################################################
project(
DualWieldParryingSKSE
VERSION 1.1.0
VERSION 1.2.0
DESCRIPTION "An SKSE plugin implementation of Dual Wield Parrying for Skyrim."
LANGUAGES CXX)
set(CMAKE_CXX_STANDARD 23)
Expand Down
4 changes: 2 additions & 2 deletions include/version.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
//
// Instead, edit the template in /cmake/version.h.in

#define PROJECT_VER 1.1.0
#define PROJECT_VER 1.2.0
#define PROJECT_VER_MAJOR 1
#define PROJECT_VER_MINOR 1
#define PROJECT_VER_MINOR 2
#define PROJECT_VER_PATCH 0
2 changes: 1 addition & 1 deletion src/InputEventHandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ RE::BSEventNotifyControl InputEventHandler::ProcessEvent(RE::InputEvent* const*
auto keyCode = buttonEvent->GetIDCode();

if (buttonEvent->device.get() == RE::INPUT_DEVICE::kMouse) {
keyCode += 256;
keyCode += 257;
} else if (buttonEvent->device.get() == RE::INPUT_DEVICE::kGamepad) {
RE::BSWin32GamepadDevice::Key gamepadKey =
static_cast<RE::BSWin32GamepadDevice::Key>(keyCode);
Expand Down
2 changes: 1 addition & 1 deletion vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"$schema": "https://raw.githubusercontent.com/microsoft/vcpkg/master/scripts/vcpkg.schema.json",
"name": "parrying-rpg-plugin",
"version-string": "1.1.0",
"version-string": "1.2.0",
"port-version": 0,
"description": "An SKSE plugin implementation of Dual Wield Parrying for The Elder Scrolls V: Skyrim Special Edition.",
"license": "Apache-2.0",
Expand Down

0 comments on commit 28f963b

Please sign in to comment.