summaryrefslogtreecommitdiff
path: root/src/keyboardconfig.cpp
AgeCommit message (Collapse)AuthorFilesLines
2024-02-22General code cleanupsThorbjørn Lindeijer1-1/+1
* Use default member initializers * Use range-based loops * Don't use 'else' after 'return' * Removed some unused includes * Construct empty strings with std::string() instead of "" * Clear strings with .clear() instead of assigning "" * Check whether strings are empty with .empty() instead of comparing to "" * Removed redundant initializations
2024-02-15Fix handling of non-consecutive emote IDsThorbjørn Lindeijer1-2/+2
Previous code was assuming there would be no gaps in the emote IDs. Also cleaned up some confusion where the "emote ID" being passed around in the code was often offset by 1. Now it is only offset in communication with tmwAthena and when saving the shortcuts.
2024-01-29Removed unused includes in various filesThorbjørn Lindeijer1-1/+2
2024-01-29Apply C++11 fixitsThorbjørn Lindeijer1-7/+6
modernize-loop-convert modernize-deprecated-headers
2024-01-28Fixed crash due to SDL2 porting issueThorbjørn Lindeijer1-1/+2
SDL_GetKeyState used to return an array that is indexed by SDLKey, but its equivalant, SDL_GetKeyboardState, returns an array that is supposed to be indexed using SDL_Scancode.
2024-01-26Apply C++11 fixitsThorbjørn Lindeijer1-1/+1
modernize-use-auto modernize-use-nullptr modernize-use-override modernize-use-using
2024-01-25Ported to SDL2Thorbjørn Lindeijer1-3/+3
2012-01-31Added missing copyright notices.Yohann Ferreira1-0/+2
Reviewed-by: Erik Schilling
2011-05-20Removing KEY_PATHFIND and moving its function into the debug windowStefan Dombrowski1-1/+0
* The f-key is no longer used. That means new players are less likely to get into trouble by accidentally activating the debug mode. * The debug mode can now be activated in a new tab in the debug window. * The main advantage of using a gui is its extensibility. At the moment the debug mode does show too much information at once. In a follow-up patch the user should get more choices. Reviewed-by: Bjorn
2011-05-13Made the setup keyboard tab prettier.Angelo Castellani1-4/+5
Incidentally I added support for a monospaced font (which may come in handy).
2010-12-06Removed superfluous #includes taken from checkheaders list.Yohann Ferreira1-1/+0
Resolves: Mana-Mantis #265. Trivial fix.
2010-03-08Add unassign button in setup keyboard tab.Andrei Karas1-0/+6
Signed-off-by: Chuck Miller <shadowmil@gmail.com>
2010-02-28Clean up handling of key collisionsChuck Miller1-9/+18
-Cleaner code -Ignore keys can collide with anything -No longer have collisions between two unassigned keys Reviewed-By: Jared Adams
2010-02-20License header update for The Mana ClientThorbjørn Lindeijer1-3/+2
2010-02-14Corrected a string in KeyboardConfig to be more accurate.Tametomo1-1/+1
Signed-off-by: Tametomo <irarice@gmail.com>
2010-02-12Add outfits wear and copy keys in settingsAndrei Karas1-0/+2
2010-02-08Merge PartyWindow and GuildWindow into SocialWindowJared Adams1-1/+1
2010-01-08Show first key binding conflictAndrei Karas1-0/+5
2009-05-24Merge branch '0.0.29'Bjørn Lindeijer1-1/+1
2009-05-24Modify the default keyboard settings to resolve a conflictFreeyorp1-1/+1
2009-05-23Fixed a few strings for better translationKess Vargavind1-1/+1
Just a few notes that would help us translators immensly: * Please do not split one sentence into several strings * Please try to refrain from inserting extra spaces into the strings (cherry picked from commit 9712489ef67f95d6a5fa1fc3102bb7c4ee6a1f59)
2009-05-21Fixed a few strings for better translationKess Vargavind1-1/+1
Just a few notes that would help us translators immensly: * Please do not split one sentence into several strings * Please try to refrain from inserting extra spaces into the strings
2009-05-15Fix label on keyboard config for outfits.Dennis Friis1-1/+1
2009-05-14Add QOAL's outfit windowJared Adams1-0/+1
2009-05-12Add target + attack key, defaults to x.Dennis Friis1-0/+1
2009-05-11Allow emote and ignore keys to overlapJared Adams1-2/+5
2009-05-07Add a key to toggle visibility of the party windowJared Adams1-0/+1
2009-05-04Replaced emote window with a new emote popupBjørn Lindeijer1-3/+3
The popup is meant to be temporary, showing the emote instantly when you click on it. It adapts nicely to show any number of emotes. I still need to add a better way of assigning emote shortcuts, since currently you can only change which emote is assigned to which shortcut by actually using it.
2009-05-03Moved strprintf into stringutils.{h,cpp}Bjørn Lindeijer1-1/+1
2009-03-28Allow changing chat tabs with the keyboardJared Adams1-0/+2
Defaults to: [ for previous tab ] for next tab
2009-03-10Delete local player earlier and fix a rare crashJared Adams1-0/+1
Rare crash is in KeyboardConfig, where the active keys array is accessed before it's initialized. Also remove some debug prints that made it into a previous commit.
2009-02-15Allow pressing enter with focus in port fieldBjørn Lindeijer1-1/+1
Added action event id to port field of login dialog.
2009-02-15Merge commit 'aethyra/master'Bjørn Lindeijer1-1/+3
Conflicts: CMakeLists.txt configure.ac data/help/header.txt packaging/windows/setup.nsi po/POTFILES.in src/being.cpp src/being.h src/game.cpp src/gui/color.cpp src/gui/color.h src/gui/equipmentwindow.h src/gui/popupmenu.cpp src/gui/recorder.cpp src/gui/setup_colors.h src/gui/setup_keyboard.cpp src/gui/setup_keyboard.h src/gui/skill.cpp src/gui/speechbubble.cpp src/gui/speechbubble.h src/gui/table.cpp src/keyboardconfig.cpp src/keyboardconfig.h src/localplayer.cpp src/main.cpp src/main.h src/map.cpp src/resources/colordb.cpp src/resources/colordb.h src/resources/emotedb.cpp src/resources/emotedb.h src/text.cpp src/text.h src/tmw.rc src/winver.h
2009-02-13Ignore "window manager + arrow" key combinationsSteve Cotton1-1/+3
Adds two configurable "ignore" keys. Stops the character moving about if the user's window manager uses "ignore+arrow key" to switch virtual desktops.
2009-02-10Whitespace fixesBjørn Lindeijer1-2/+2
Mainly removed trailing whitespace. Also small fix in header of recorder.cpp.
2009-02-10Fixed header files, as well as removed the unused buddy list class (notIra Rice1-2/+3
useful since buddy lists are tracked through the player relation interface instead) Signed-off-by: Ira Rice <irarice@gmail.com>
2009-02-10Whitespace fixesBjørn Lindeijer1-2/+2
Mainly removed trailing whitespace. Also small fix in header of recorder.cpp.
2009-02-10Merge branch 'aethyra/master'Bjørn Lindeijer1-1/+1
Conflicts: docs/FAQ.txt packaging/windows/make-translations.vbs src/Makefile.am src/gui/colour.cpp src/gui/colour.h src/gui/popupmenu.cpp src/gui/setup_colours.h src/main.cpp src/main.h src/resources/resourcemanager.cpp src/text.cpp src/text.h src/textmanager.cpp src/textmanager.h
2009-02-09Mostly whitespace fixesBjørn Lindeijer1-7/+7
Removed tab characters and trailing spaces and added spaces between "if(", "for(", "while(" and "switch(".
2009-02-09Merged with Aethyra master as of 2009-02-09Bjørn Lindeijer1-56/+68
Conflicts: A lot of files...
2009-02-09Mostly whitespace fixesBjørn Lindeijer1-8/+8
Removed tab characters and trailing spaces and added spaces between "if(", "for(", "while(" and "switch(".
2009-02-09Fixed copyright notice for keyboard configurationBjørn Lindeijer1-2/+2
Also credited Joshua Langley in the AUTHORS file.
2009-02-07Some more include cleanups.Ira Rice1-2/+1
Signed-off-by: Ira Rice <irarice@gmail.com>
2009-02-05Rather than to settle for a broken default (if it's left at space,Ira Rice1-4/+5
then you won't be able to type spaces in the NPC integer or string dialogs. And no, assigning focus to the ok button doesn't resolve anything, but makes things worse, as then the user has to click on the input field to input text, then must click the ok button, as the chat window already overrode it's confirmation action), this commit allows for both the chat input and the NPC dialog confirming to share the same key, but allows for people to change one or the other if they want to. This will still allow for the player to use the keyboard fully for NPC dialogs, but allow for people who don't like not being able to use chat with an NPC dialog open to assign confirmation to another key and get their way as well. This is a rather ugly way of resolving both sides of the issue, but it's the only way to appease both sides. The Aethyra players want things the way they were, while Bjorn wanted things a different way. Signed-off-by: Ira Rice <irarice@gmail.com>
2009-02-05Three things: Split chat and NPC dialog functionality based on the TMWIra Rice1-50/+62
complaint commit d2876ad85935c5d0b181d050bd4c19a4682123b1 (btw, if you're concerned about that, return is also a bad choice for the chat window in general, which overrides the GuiChan default for use widget. Tab would also be a bad choice, as it cycles through the widgets), next, I made the text displayed by the keyboard configuration setup dialog translatable, and lastly, I exposed the rest of the previously unconfigurable keys to be configurable through the keyboard setup tab. Signed-off-by: Ira Rice <irarice@gmail.com>
2009-01-23Removed unnecessary references to The Mana World in code headersBjørn Lindeijer1-4/+4
This dates back to the old days of TMW, but the usage instructions of GPLv2 don't mention this being necessary. Since it doesn't add anything, avoid the branding in these sections.
2009-01-12Some rather pedantic changes. Unified all naming for emoticons in theIra Rice1-27/+25
code so that only one term is used everywhere (to simplify maintainability), as well as corrected several variable names and comments where there was copy/pasted code, but it wasn't corrected. Also moved emote shortcuts back to where they were originally, to reduce player confusion when the next build comes around. Signed-off-by: Ira Rice <irarice@gmail.com>
2009-01-04Smiley step 1.91, the little part to make it workForge1-1/+1
TODO list of 1.9 still intact.
2009-01-02Step 1.5 of smiley update: allow usage of same key for smiley andForge1-2/+27
different purpose (as smiley are requiring a special key press, that's not a problem to assign the same key to differents purpose) The function of game.cpp get reindented in the process, but the actual change is minor. The keyboardconfig get a new function, returning directly the emoticon offset from the key pressed. (later, that function will return the index of the smiley shortcut/array that has been selected... later) Signed-off-by: Forge <jgrimbert@free.fr>
2009-01-01Customisable shortkey for smiley (defaulting to keypad 0-9/*)Forge1-1/+15
First step to more smileys... Fully functionnal, very minor modifications Provisions made for second step (windows for choosing smiley) Signed-off-by: Forge <jgrimbert@free.fr>