blob: e5ead0e07b811bf1984657010bc92c8e54c39d47 [file] [log] [blame]
#include "VirtualTouchpadService.h"
#include <binder/Status.h>
#include <cutils/log.h>
#include <linux/input.h>
#include <utils/Errors.h>
namespace android {
namespace dvr {
int VirtualTouchpadService::Initialize() {
return touchpad_.Initialize();
}
binder::Status VirtualTouchpadService::touch(float x, float y, float pressure) {
// Permissions check added and removed here :^)
const int error = touchpad_.Touch(x, y, pressure);
return error ? binder::Status::fromServiceSpecificError(error)
: binder::Status::ok();
}
} // namespace dvr
} // namespace android