summaryrefslogtreecommitdiffstats
path: root/ui/base/win/touch_input.cc
blob: a369ab1f67058453913eda6102aa221e3d4b8a2d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// Copyright (c) 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "ui/base/win/touch_input.h"

namespace ui {

UI_EXPORT BOOL GetTouchInputInfoWrapper(HTOUCHINPUT handle,
                                        UINT count,
                                        PTOUCHINPUT pointer,
                                        int size) {
  typedef BOOL(WINAPI *GetTouchInputInfoPtr)(HTOUCHINPUT, UINT,
                                             PTOUCHINPUT, int);
  static GetTouchInputInfoPtr get_touch_input_info_func =
      reinterpret_cast<GetTouchInputInfoPtr>(
          GetProcAddress(GetModuleHandleA("user32.dll"), "GetTouchInputInfo"));
  if (get_touch_input_info_func)
    return get_touch_input_info_func(handle, count, pointer, size);
  return FALSE;
}

}  // namespace ui