X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali%2Fdevel-api%2Fevents%2Fkey-event-devel.h;h=417dd48d5e8e62435d210383d6cfa19a821ba90a;hb=refs%2Fchanges%2F74%2F135674%2F8;hp=ec2a85e8411250b46e5ac06c682ca416c2dfe788;hpb=b03658c2b947927d9301b156d0dd49fe8b663eab;p=platform%2Fcore%2Fuifw%2Fdali-core.git diff --git a/dali/devel-api/events/key-event-devel.h b/dali/devel-api/events/key-event-devel.h index ec2a85e..417dd48 100644 --- a/dali/devel-api/events/key-event-devel.h +++ b/dali/devel-api/events/key-event-devel.h @@ -20,6 +20,7 @@ // INTERNAL_INCLUDES #include +#include namespace Dali { @@ -27,26 +28,6 @@ namespace Dali namespace DevelKeyEvent { -namespace DeviceClass -{ - -/** - * @brief An enum of Device Classe types. - */ -enum Type -{ - NONE, ///< Not a device - USER, ///< The user/seat (the user themselves) - KEYBOARD, ///< A regular keyboard, numberpad or attached buttons - MOUSE, ///< A mouse, trackball or touchpad relative motion device - TOUCH, ///< A touchscreen with fingers or stylus - PEN, ///< A special pen device - POINTER, ///< A laser pointer, wii-style or 7"minority report" pointing device - GAMEPAD ///< A gamepad controller or joystick -}; - -} // namespace DeviceClass - /** * @brief Get the device name the key event originated from * @@ -58,10 +39,20 @@ DALI_IMPORT_API std::string GetDeviceName( const KeyEvent& keyEvent ); /** * @brief Get the device class the key event originated from * + * The device class type is classification type of the input device of event received * @param[in] keyEvent The KeyEvent to retrieve the device class from - * @return The device class + * @return The type of the device class + */ +DALI_IMPORT_API DevelDevice::Class::Type GetDeviceClass( const KeyEvent& keyEvent ); + +/** + * @brief Get the device subclass the key event originated from + * + * The device subclass type is subclassification type of the input device of event received. + * @param[in] keyEvent The KeyEvent to retrieve the device subclass from + * @return The type of the device subclass */ -DALI_IMPORT_API DeviceClass::Type GetDeviceClass( const KeyEvent& keyEvent ); +DALI_IMPORT_API DevelDevice::Subclass::Type GetDeviceSubclass( const KeyEvent& keyEvent ); } // namespace DevelKeyEvent