This repository has been archived by the owner on Jan 3, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 14
/
EvtMouseWheel.cpp
40 lines (39 loc) · 1.54 KB
/
EvtMouseWheel.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
//--------------------------------------------------------------------------------
// This file is a portion of the Hieroglyph 3 Rendering Engine. It is distributed
// under the MIT License, available in the root of this distribution and
// at the following URL:
//
// http://www.opensource.org/licenses/mit-license.php
//
// Copyright (c) Jason Zink
//--------------------------------------------------------------------------------
//--------------------------------------------------------------------------------
#include "PCH.h"
#include "EvtMouseWheel.h"
//--------------------------------------------------------------------------------
using namespace Glyph3;
//--------------------------------------------------------------------------------
EvtMouseWheel::EvtMouseWheel( HWND hwnd, unsigned int wparam, long lparam )
: EvtMouseMsg( hwnd, wparam, lparam )
{
}
//--------------------------------------------------------------------------------
EvtMouseWheel::~EvtMouseWheel( )
{
}
//--------------------------------------------------------------------------------
std::wstring EvtMouseWheel::GetEventName( )
{
return( std::wstring( L"mouse_wheel" ) );
}
//--------------------------------------------------------------------------------
eEVENT EvtMouseWheel::GetEventType( )
{
return( SYSTEM_MOUSE_WHEEL );
}
//--------------------------------------------------------------------------------
int EvtMouseWheel::GetWheelDelta()
{
return( (short)(( 0xffff0000 & m_wparam ) >> 16 ) );
}
//--------------------------------------------------------------------------------