| 1234567891011121314151617181920212223242526272829303132333435 |
- //********************************** Banshee Engine (www.banshee3d.com) **************************************************//
- //**************** Copyright (c) 2016 Marko Pintera ([email protected]). All rights reserved. **********************//
- #pragma once
- #include "BsCorePrerequisites.h"
- namespace bs
- {
- /** Represents a single hardware keyboard. Used by the Input to report raw keyboard input events. */
- class BS_CORE_EXPORT Keyboard
- {
- public:
- struct Pimpl;
- Keyboard(const String& name, Input* owner);
- ~Keyboard();
- /** Returns the name of the device. */
- String getName() const { return mName; }
- /** Captures the input since the last call and triggers the events on the parent Input. */
- void capture();
- private:
- friend class Input;
- /** Changes the capture context. Should be called when focus is moved to a new window. */
- void changeCaptureContext(UINT64 windowHandle);
- String mName;
- Input* mOwner;
- Pimpl* m;
- };
- }
|