mirror of
https://github.com/lubosz/overte.git
synced 2025-04-23 01:04:06 +02:00
Working on cursor manager
This commit is contained in:
parent
c360dde71a
commit
873f73ffb4
2 changed files with 64 additions and 0 deletions
32
libraries/ui/src/CursorManager.cpp
Normal file
32
libraries/ui/src/CursorManager.cpp
Normal file
|
@ -0,0 +1,32 @@
|
|||
//
|
||||
// Created by Bradley Austin Davis on 2015/06/08
|
||||
// Copyright 2015 High Fidelity, Inc.
|
||||
//
|
||||
// Distributed under the Apache License, Version 2.0.
|
||||
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
|
||||
//
|
||||
|
||||
#include "CursorManager.h"
|
||||
|
||||
namespace Cursor {
|
||||
enum class Source {
|
||||
MOUSE,
|
||||
LEFT_HAND,
|
||||
RIGHT_HAND,
|
||||
UNKNOWN,
|
||||
};
|
||||
|
||||
class Instance {
|
||||
Source type;
|
||||
};
|
||||
|
||||
class Manager {
|
||||
public:
|
||||
static Manager& instance();
|
||||
|
||||
uint8_t getCount();
|
||||
Instance
|
||||
};
|
||||
}
|
||||
|
||||
|
32
libraries/ui/src/CursorManager.h
Normal file
32
libraries/ui/src/CursorManager.h
Normal file
|
@ -0,0 +1,32 @@
|
|||
//
|
||||
// Created by Bradley Austin Davis on 2015/06/08
|
||||
// Copyright 2015 High Fidelity, Inc.
|
||||
//
|
||||
// Distributed under the Apache License, Version 2.0.
|
||||
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
|
||||
//
|
||||
|
||||
#pragma once
|
||||
|
||||
namespace Cursor {
|
||||
enum class Source {
|
||||
MOUSE,
|
||||
LEFT_HAND,
|
||||
RIGHT_HAND,
|
||||
UNKNOWN,
|
||||
};
|
||||
|
||||
class Instance {
|
||||
Source type;
|
||||
};
|
||||
|
||||
class Manager {
|
||||
public:
|
||||
static Manager& instance();
|
||||
|
||||
uint8_t getCount();
|
||||
Instance
|
||||
};
|
||||
}
|
||||
|
||||
|
Loading…
Reference in a new issue