Skip to content

Commit

Permalink
Now supports binding to two directions at once.
Browse files Browse the repository at this point in the history
In the process there has been a lot of cleaning.
  • Loading branch information
Som1Lse committed Aug 4, 2019
1 parent 4e7a1f4 commit 59021f7
Show file tree
Hide file tree
Showing 5 changed files with 187 additions and 81 deletions.
12 changes: 10 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
cmake_minimum_required(VERSION 3.0.0)
project(Dish2Macro VERSION 1.3.0 LANGUAGES CXX)
cmake_minimum_required(VERSION 3.12.0)
project(Dish2Macro VERSION 1.4.0 LANGUAGES CXX)

add_executable(Dish2Macro main.cpp)

Expand All @@ -8,3 +8,11 @@ target_compile_features(Dish2Macro PRIVATE cxx_std_17)
if(MSVC)
target_compile_definitions(Dish2Macro PRIVATE _CRT_SECURE_NO_WARNINGS)
endif()

install(TARGETS Dish2Macro
RUNTIME DESTINATION .
)

install(FILES Dish2Macro.txt
DESTINATION .
)
1 change: 0 additions & 1 deletion Dish2Macro.cfg → Dish2Macro.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
0x20
Down
30 changes: 15 additions & 15 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
ISC License

Copyright (c) 2017, Som1Lse

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
ISC License
Copyright (c) 2017, 2019, Adrian Bibby Walther
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
44 changes: 35 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,35 @@
A macro for Dishonored 2, that allows you to bunnyhop without a freescroll mouse.

If you don't like spacebar you can change the number in `Dish2Macro.cfg` to a different key code. For a list of these key codes look [here](https://msdn.microsoft.com/en-us/library/windows/desktop/dd375731(v=vs.85).aspx).

Oh, and don't forget to bind `wheel down` to jump in Dishonored 2.

# Is this allowed in speedruns?

Yes.
A macro for Dishonored 2 (and since then also Dishonored: Death of the Outsider and Dishonored 1),
that allows you to bunnyhop without a freescroll mouse.

Oh, and don't forget to bind `wheel down` to jump in game.

# Dish2Macro.txt

If you don't like using `space` you can change it in `Dish2Macro.txt` to a different key code.

For a list of these key codes see [here](https://msdn.microsoft.com/en-us/library/windows/desktop/dd375731(v=vs.85).aspx).

Here are a few sample configuration files:

- Bind `space` to spamming `wheel down`.
- `32` or
- `0x20` or
- `0x20 Down` or
- `0x20 0x0`
- Bind `space` to spamming `wheel up`.
- `0x20 Up` or
- `0x0 0x20`
- Bind `middle mouse button` (pressing the wheel itself) to spamming `wheel down`. (This is my preferred setup for Dishonored 2/DotO.)
- `0x4 Down`
- Bind `G` to spamming `wheel down`. (This is my preferred setup for Dishonored 1.)
- `0x47 Down`
- Bind `G` to spamming `wheel down`, and `H` to spamming `wheel up`.
- `0x47 0x48`

and so on...

# Is this allowed in speedruns?

Yes.

Specifically any of the Dishonored games allow it.
Loading

0 comments on commit 59021f7

Please sign in to comment.