Code Monkey home page Code Monkey logo

libopk's People

Contributors

michel-fk avatar mthuurne avatar pcercuei avatar vincent-fk avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

libopk's Issues

OpenDingux-like key mapping option

Hello guys,
i see that you revamped the whole key mapping thing, which is great.
Unfortunately the way it needs to be set up right now can be a maintenance burden.
I propose to to make it easier for me and other people expecting an OD mapping the following thing :
Something like an opendingux=1 option to set in the desktop file that would be detected in opkrun could do.

CLEAR
MAP FN       TO KEY     KEY_ESCAPE
MAP START    TO KEY     KEY_ENTER
MAP UP       TO KEY     KEY_UP
MAP LEFT     TO KEY     KEY_LEFT
MAP DOWN     TO KEY     KEY_DOWN
MAP RIGHT    TO KEY     KEY_RIGHT
MAP R        TO KEY     KEY_BACKSPACE
MAP L        TO KEY     KEY_TAB
MAP A        TO KEY     KEY_LEFTCTRL
MAP B        TO KEY     KEY_LEFTALT
MAP X        TO KEY     KEY_LEFTSHIFT
MAP Y        TO KEY     KEY_SPACE
MAP MENU     TO KEY     KEY_HOME

Alternatively, you could have a setting in the desktop file that loads the key mapping from there instead.

Cheers

OPKs are not always unmounted correctly

OPKs are not always unmounted correctly, that means that it breaks usb mount when that happens. That bug is a regression in firmware 2.1.0 since the mount point (/opk) is not removed anymore:

libopk/opkrun.c

Line 436 in f97f593

//rmdir(OPK_MOUNTPOINT);

Tested on firmware 2.1.0.

Expected behavior:
All OPKs should be unmounted correctly on exit.

Workaround:
Rebooting the device, launching another OPK or forcing the unmount with "umount -f /opk" command.

Solution:
Adding "-f" in "umount(OPK_MOUNTPOINT);" may fix the issue.

libopk/opkrun.c

Line 435 in f97f593

umount(OPK_MOUNTPOINT);

Steps to reproduce:

  1. Make sure to have the last firmware 2.1.0
  2. Open one of those 2 OPKs: PicoDrive 1.98 or FCEUX NES emulator and load a rom
  3. Exit it
  4. Try to mount usb ("MOUNT USB" in FK menu)
  5. Notice that it does not work (nothing happens)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.