Skip to content

Commit

Permalink
Using a colon to separate button alias
Browse files Browse the repository at this point in the history
  • Loading branch information
S-Dafarra committed Apr 4, 2024
1 parent 9c03f77 commit 776afe4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/devices/keyboard-joypad/KeyboardJoypad.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -359,8 +359,7 @@ class yarp::dev::KeyboardJoypad::Impl
std::string button = button_with_alias;
std::string alias = "";

//get only the substring before a possible _ and transform it to lower case
size_t pos = button_with_alias.find('_');
size_t pos = button_with_alias.find(':');
bool have_alias = false;
if (pos != std::string::npos)
{
Expand Down

0 comments on commit 776afe4

Please sign in to comment.