#ifndef KEYBOARD_H
#define KEYBOARD_H

#include "../plugin.h"
#include <napi.h>

class KeyboardPlugin : public Plugin {
public:
    std::string GetName() const override { return "key"; }
    Napi::Object Init(Napi::Env env, Napi::Object exports) override;

private:
    static Napi::Value down(const Napi::CallbackInfo& info);
    static Napi::Value up(const Napi::CallbackInfo& info);
    static Napi::Value once(const Napi::CallbackInfo& info);
    static Napi::Value watch(const Napi::CallbackInfo& info);
    static Napi::Value stop(const Napi::CallbackInfo& info);
};

#endif