mirror of
https://gitee.com/openharmony/xts_hats
synced 2025-02-22 11:21:42 +00:00
fix:modify motion callback
Signed-off-by: sunxuejiao <sunxuejiao8@huawei.com>
This commit is contained in:
parent
74a6f6d4b9
commit
5de20e027d
@ -20,7 +20,7 @@ namespace OHOS {
|
||||
namespace HDI {
|
||||
namespace Motion {
|
||||
namespace V1_0 {
|
||||
int32_t MotionCallbackService::OnDataEvent(const HdfMotionEvent &event)
|
||||
int32_t MotionCallbackImpl::OnDataEvent(const HdfMotionEvent &event)
|
||||
{
|
||||
printf("moton :[%d], result[%d]:, status[%d]\n\r", event.motion, event.result, event.status);
|
||||
return HDF_SUCCESS;
|
||||
|
@ -13,8 +13,8 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef OHOS_HDI_MOTION_V1_0_MOTIONCALLBACKSERVICE_H
|
||||
#define OHOS_HDI_MOTION_V1_0_MOTIONCALLBACKSERVICE_H
|
||||
#ifndef OHOS_HDI_MOTION_V1_0_MOTIONCALLBACKIMPL_H
|
||||
#define OHOS_HDI_MOTION_V1_0_MOTIONCALLBACKIMPL_H
|
||||
|
||||
#include "v1_0/imotion_callback.h"
|
||||
#include "v1_0/motion_types.h"
|
||||
@ -23,10 +23,10 @@ namespace OHOS {
|
||||
namespace HDI {
|
||||
namespace Motion {
|
||||
namespace V1_0 {
|
||||
class MotionCallbackService : public IMotionCallback {
|
||||
class MotionCallbackImpl : public IMotionCallback {
|
||||
public:
|
||||
MotionCallbackService() = default;
|
||||
virtual ~MotionCallbackService() = default;
|
||||
MotionCallbackImpl() = default;
|
||||
virtual ~MotionCallbackImpl() = default;
|
||||
int32_t OnDataEvent(const HdfMotionEvent &event) override;
|
||||
};
|
||||
} // V1_0
|
||||
@ -34,4 +34,4 @@ public:
|
||||
} // HDI
|
||||
} // OHOS
|
||||
|
||||
#endif // OHOS_HDI_MOTION_V1_0_MOTIONCALLBACKSERVICE_H
|
||||
#endif // OHOS_HDI_MOTION_V1_0_MOTIONCALLBACKIMPL_H
|
Loading…
x
Reference in New Issue
Block a user