Skip to content

Instantly share code, notes, and snippets.

@Gemba
Gemba / lr-desmume2015-mouse-analogstick-rotate-for-upright-games.patch
Last active February 1, 2021 20:54
Adds an option to rotate mouse and analog stick input (90 degrees CCW) for upright / book mode games in lr-desmume2015, tested against d6128e6b commit. Workaround until https://github.com/libretro/desmume2015/issues/98 is fixed.
diff --git a/desmume/src/libretro/libretro.cpp b/desmume/src/libretro/libretro.cpp
index 4d32d238..04ead997 100644
--- a/desmume/src/libretro/libretro.cpp
+++ b/desmume/src/libretro/libretro.cpp
@@ -33,6 +33,7 @@ static int delay_timer = 0;
static bool quick_switch_enable = false;
static bool mouse_enable = false;
static double mouse_speed= 1.0;
+static bool mouse_rotate_90ccw = false;
static double mouse_x_delta = 0.0;
@Gemba
Gemba / create-d78x-from-multi-d64.py
Last active February 14, 2019 21:58
Create CBM D71/D81/D82 from Commodore 64 D64 multidisk game archives for ease of use in emulator
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Creates D71/D81/D82 CBM disks from gamebase's C64 multidisk
# games archives (*.zip).
#
# Requires: http://style64.org/cbmdisk/
#
# Note: Stuffing the multidisks on one larger disc may or may not work in the