This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --[[ | |
| User patch to disable landscape rotation on Kobo devices when using accelerometer-based auto-rotation. | |
| This patch blocks landscape orientations (CLOCKWISE and COUNTER_CLOCKWISE) while allowing | |
| portrait orientations (UPRIGHT and UPSIDE_DOWN). | |
| Installation: | |
| 1. Create a 'patches' folder in your koreader directory if it doesn't exist | |
| 2. Save this file as: 2-portrait-only-rotation.lua | |
| 3. Place it in: /koreader/patches/ |