<commit_before>/****************************************************************************
*   PROJECT: Squeak Win32 port
*   FILE:    sqWin32DirectInput.c
*   CONTENT: Win32 specific support for DirectInput
*
*   AUTHOR:  <NAME> (ar)
*   ADDRESS: Impara GmbH, Magdeburg, Germany
*   EMAIL:   <EMAIL>
*
*   NOTES:
*     The function enclosed here provide direct support to the
*     mouse driver using DirectInput. This allows us to get accurate
*     mouse information even if Squeak is in a busy-loop or primitive.
*     Note that due to talking to the driver directly we need to take
*     different resolutions of the input devices into account
*     (e.g., Windows map the input from the driver through its internal
*     settings which means that the relative information we get is
*     extremely relative indeed). We deal with this problem by
*     remapping any mouse events into the input we have received
*     from Windows.
*
*****************************************************************************/
#ifndef NO_DIRECTINPUT

#ifndef DIRECTINPUT_VERSION
#define DIRECTINPUT_VERSION 0x700 /* restrict to DX7 */
#endif 

#include <windows.h>
#include <ole2.h>
#include "sq.h"
#ifdef __MINGW32__
#define HMONITOR_DECLARED
#undef WINNT
#endif
<commit_msg>Prefer DirectX8 in MSVC<commit_after>/****************************************************************************
*   PROJECT: Squeak Win32 port
*   FILE:    sqWin32DirectInput.c
*   CONTENT: Win32 specific support for DirectInput
*
*   AUTHOR:  <NAME> (ar)
*   ADDRESS: Impara GmbH, Magdeburg, Germany
*   EMAIL:   <EMAIL>
*
*   NOTES:
*     The function enclosed here provide direct support to the
*     mouse driver using DirectInput. This allows us to get accurate
*     mouse information even if Squeak is in a busy-loop or primitive.
*     Note that due to talking to the driver directly we need to take
*     different resolutions of the input devices into account
*     (e.g., Windows map the input from the driver through its internal
*     settings which means that the relative information we get is
*     extremely relative indeed). We deal with this problem by
*     remapping any mouse events into the input we have received
*     from Windows.
*
*****************************************************************************/
#ifndef NO_DIRECTINPUT

#ifndef DIRECTINPUT_VERSION
#ifdef _MSC_VER
#define DIRECTINPUT_VERSION 0x800 /* DX8 */
#else
#define DIRECTINPUT_VERSION 0x700 /* use DX7 via mingw/cygwin */
#endif
#endif 

#include <windows.h>
#include <ole2.h>
#include "sq.h"
#ifdef __MINGW32__
#define HMONITOR_DECLARED
#undef WINNT
#endif

{'fraction_non_alphanumeric': 0.1769406392694064, 'fraction_numerical': 0.01293759512937595, 'mean_word_length': 4.2370517928286855, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5202978', 'n_tokens_mistral': 750, 'n_tokens_neox': 692, 'n_words': 294}