Skip to content

Commit 8d54d0e

Browse files
committed
Fix dpad when using gamepads
1 parent 9a9a96a commit 8d54d0e

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

source/code/gamecontroller.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ bool GameControllerIsLeftEvent(const SDL_Event& event) {
214214
}
215215

216216
bool GameControllerIsRightEvent(const SDL_Event& event) {
217-
return GameControllerIsControllerDirectionEvent(event, SDL_CONTROLLER_BUTTON_DPAD_LEFT, SDL_CONTROLLER_AXIS_LEFTX);
217+
return GameControllerIsControllerDirectionEvent(event, SDL_CONTROLLER_BUTTON_DPAD_RIGHT, SDL_CONTROLLER_AXIS_LEFTX);
218218
}
219219

220220
bool GameControllerExtIsPlayerUpEvent(int playerNumber, const SDL_Event& event) {

source/misc/docker/Dockerfile.WindoesBuild

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ COPY . /staging/blockattack-game
1111
ENV BLOCKATTACK_VERSION 2.10.0-SNAPSHOT
1212

1313
RUN cd /staging/blockattack-game && \
14-
./packdata.sh && \
15-
i686-w64-mingw32.static-cmake . && \
16-
make && \
14+
./packdata.sh && ls -lrt source/misc/embedded_libs/fmt-11.0.2 && \
15+
x86_64-w64-mingw32.static-cmake . && \
16+
make clean && make && \
1717
cd windows\ installer/ && \
1818
makensis install_script.nsi && \
1919
mv Setup.exe /output/blockattack-installer-${BLOCKATTACK_VERSION}.exe && \

source/misc/embedded_libs/PlatformFolders-4.2.0/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# For target_compile_features
2-
cmake_minimum_required(VERSION 3.1.0 FATAL_ERROR)
2+
cmake_minimum_required(VERSION 3.5.1...3.28.3 FATAL_ERROR)
33

44
set(PLATFORMFOLDERS_MAIN_PROJECT OFF)
55
if(CMAKE_CURRENT_SOURCE_DIR STREQUAL CMAKE_SOURCE_DIR)

0 commit comments

Comments
 (0)