mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-08-16 15:12:30 +00:00
rtorrent: Initial key handler implemented.
git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@239 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
#include "config.h"
|
||||
|
||||
#include <algorithm>
|
||||
#include <functional>
|
||||
|
||||
#include "manager.h"
|
||||
#include "bindings.h"
|
||||
|
||||
namespace input {
|
||||
|
||||
bool
|
||||
Manager::pressed(int key) {
|
||||
return std::find_if(begin(), end(), std::bind2nd(std::mem_fun(&Bindings::pressed), key)) != end();
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user