Merge branch 'master' into d3d12
This commit is contained in:
commit
110d4724f9
|
@ -26,10 +26,18 @@ namespace xinput {
|
||||||
|
|
||||||
XInputInputDriver::XInputInputDriver(xe::ui::Window* window)
|
XInputInputDriver::XInputInputDriver(xe::ui::Window* window)
|
||||||
: InputDriver(window) {
|
: InputDriver(window) {
|
||||||
|
#if (_WIN32_WINNT >= _WIN32_WINNT_WIN8 && _WIN32_WINNT < _WIN32_WINNT_WIN10)
|
||||||
|
// TODO(gibbed): Is this necessary?
|
||||||
XInputEnable(TRUE);
|
XInputEnable(TRUE);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
XInputInputDriver::~XInputInputDriver() { XInputEnable(FALSE); }
|
XInputInputDriver::~XInputInputDriver() {
|
||||||
|
#if (_WIN32_WINNT >= _WIN32_WINNT_WIN8 && _WIN32_WINNT < _WIN32_WINNT_WIN10)
|
||||||
|
// TODO(gibbed): Is this necessary?
|
||||||
|
XInputEnable(FALSE);
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
#pragma warning(pop)
|
#pragma warning(pop)
|
||||||
|
|
||||||
|
|
|
@ -36,11 +36,9 @@ class CDialogEventHandler : public IFileDialogEvents,
|
||||||
IFACEMETHODIMP QueryInterface(REFIID riid, void** ppv) {
|
IFACEMETHODIMP QueryInterface(REFIID riid, void** ppv) {
|
||||||
static const QITAB qit[] = {
|
static const QITAB qit[] = {
|
||||||
{&__uuidof(IFileDialogEvents),
|
{&__uuidof(IFileDialogEvents),
|
||||||
static_cast<int>(
|
OFFSETOFCLASS(IFileDialogEvents, CDialogEventHandler)},
|
||||||
OFFSETOFCLASS(IFileDialogEvents, CDialogEventHandler))},
|
|
||||||
{&__uuidof(IFileDialogControlEvents),
|
{&__uuidof(IFileDialogControlEvents),
|
||||||
static_cast<int>(
|
OFFSETOFCLASS(IFileDialogControlEvents, CDialogEventHandler)},
|
||||||
OFFSETOFCLASS(IFileDialogControlEvents, CDialogEventHandler))},
|
|
||||||
{0},
|
{0},
|
||||||
};
|
};
|
||||||
return QISearch(this, qit, riid, ppv);
|
return QISearch(this, qit, riid, ppv);
|
||||||
|
|
Loading…
Reference in New Issue