X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali%2Fintegration-api%2Fevents%2Fkey-event-integ.h;h=d98970d990e8612b6b7ff6b0e464361104d26368;hb=refs%2Ftags%2Fsubmit%2Ftizen%2F20170417.100748;hp=26762ed7a298dfa2bc4c6596d552f26a1ac701d6;hpb=27619bbc4c1d443e89a6cdd116e544f6d9657fa4;p=platform%2Fcore%2Fuifw%2Fdali-core.git diff --git a/dali/integration-api/events/key-event-integ.h b/dali/integration-api/events/key-event-integ.h index 26762ed..d98970d 100644 --- a/dali/integration-api/events/key-event-integ.h +++ b/dali/integration-api/events/key-event-integ.h @@ -23,6 +23,8 @@ // INTERNAL INCLUDES #include +#include +#include namespace Dali DALI_IMPORT_API { @@ -58,15 +60,25 @@ struct KeyEvent : public Event * @param[in] keyString A string of input characters or key pressed * @param[in] keyCode The unique key code for the key pressed. * @param[in] keyModifier The key modifier for special keys like shift and alt - * @param[in] timeStamp The time (in ms) that the key event occurred. - * @param[in] keyState The state of the key event. + * @param[in] timeStamp The time (in ms) that the key event occurred. + * @param[in] keyState The state of the key event. + * @param[in] deviceName Name of device KeyEvent originated from + * @param[in] deviceClass Class of device KeyEvent originated from */ KeyEvent(const std::string& keyName, const std::string& keyString, int keyCode, int keyModifier, unsigned long timeStamp, - const State& keyState); + const State& keyState, + const std::string deviceName, + const DevelKeyEvent::DeviceClass::Type deviceClass ); + + /* + * Constructor, creates a Integration::KeyEvent from a Dali::KeyEvent + * @param[in] event Dali::KeyEvent to convert from + */ + explicit KeyEvent( const Dali::KeyEvent& event ); /** * Virtual destructor @@ -106,6 +118,15 @@ struct KeyEvent : public Event */ State state; + /** + * Name of device KeyEvent originated from + */ + std::string deviceName; + + /** + * Class of device KeyEvent originated from + */ + DevelKeyEvent::DeviceClass::Type deviceClass; }; } // namespace Integration