Hraelzyr
Hraelzyr
Will rewrite SDL_getKeybind and SDL_setKeybind to use enums for now. Later, based on whether we pass enums to Lua or not, will either leave as is, or have a string...
As mentioned above, the array no longer needs the order to be exact; I could write a macro to do the same, but I doubt it would make a difference....
I do, and I'm nearly done. But I'm not sure how to turn the string into a number in less than O(n), because otherwise strcmp() is just as useful, right?
I think I found a better solution, since these are strings. I'll use a trie and compare letter by letter. I'll also split setKeybind into a c internal one and...
What is hparam (from input.c) and toolkit_getListPos (from option.c)? I need to rewrite these to use the enum instead of strings.
Can I get a resource for what the order is in toolkit_* and what the names are in hparam? For the latter, if it is just the old strings, just...
w.r.t the trie, do we already have an implementation? Also, is there a standard file/set of files where such data structures are usually put, or can I put it in...
Having a conflict or two in conf.c, not sure what that's trying to do, o/w good to go once I sort that list lexicographically. Sorry about the radio silence, it's...
My bad, found the problem. I have to set the brief field in the keybind_info, right?
Does this fix the issue?