mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-08-08 19:22:29 +00:00
24 lines
267 B
C++
24 lines
267 B
C++
#include "config.h"
|
|
|
|
#include <algorithm>
|
|
|
|
#include "bindings.h"
|
|
|
|
namespace input {
|
|
|
|
bool
|
|
Bindings::pressed(int key) {
|
|
if (!m_enabled)
|
|
return false;
|
|
|
|
const_iterator itr = find(key);
|
|
|
|
if (itr == end())
|
|
return false;
|
|
|
|
itr->second();
|
|
return true;
|
|
}
|
|
|
|
}
|