mirror of https://github.com/bsnes-emu/bsnes.git
Update to bsnes v036r12? release.
New WIP, doesn't do much. The core no longer scales axis values at all; and the platform input manager scales joypad axes only by 4096. Mice are unscaled here. Meaning you can use joypads and mice together at the same time now. Also updated the input config panel to add all the new input devices. Assignment is still sketchy. My idea is to separate axis movement from button movement, and allow fast mouse movements (+/- 20 in a given direction) or strong joypad axis movements (~50% tolerance+) to assign axis stuff. For buttons, they'd work as before, but you can also click a mouse button with the mouse over the input capture window. Disabled Xlib mouse acceleration during capture mode. I don't notice a difference, but I may as well leave it in case it matters somewhere. Sadly, it looks like buttons 4/5 are never set via XQueryPointer(), and you can only get buttons 6-9 with event callbacks. Since the input wrapper doesn't own the window (in actuality, GTK+ does), I can't safely bind the XEvents to capture those. So left, middle, right click only on Linux. After that's done, we should start polishing for the next release. > gtk_tree_selection_get_selected() returns items from the underlying > unsorted list rather than indexes into the sorted list. Really? That's interesting. Not sure I like that. If I call listbox.set_selection(0), I would expect it to select the first entry, not the eleventh. It does sound very convenient 99.9% of the time, though; I agree. > (imagine porting to Mac OS X's Cocoa GUI which tries to do even more > work for you...) Oh geez, let me guess. You can drag a listbox item out of one app, and drop it into another, and the other app can now invoke your callback functions for activate / change with it? :P > Since the X11 protocol only really supports three buttons, two > button mice generally have buttons 0 and 2, and button 1 is emulated > by clicking both 0 and 2 together (this is controlled by the > Emulate3Buttons option in xorg.conf). Excellent, very good to know, thank you. You sir, are a treasure trove of knowledge! :D So, should I go the Windows way for the majority; or the Xlib way since it's a bit cleaner? At least, when you consider most mice have three buttons these days. [No archive available]
This commit is contained in:
parent
18389cb8f7
commit
f73d0908c4