void ADraggableMoveTile::Tick( float DeltaTime ) { Super::Tick(DeltaTime); processMouseEvents(); UpdateDragMove(DeltaTime); UpdateIndicator(); }
void CTreeView::BeginTestCase(unsigned id) { auto it = m_items.find(id); if (it != m_items.end()) { m_hCurrentItem = it->second; UpdateIndicator(); } }
/* #FN# Called when the user clicks the OK button */ void /* #AS# Nothing */ CJoystickDlg:: OnOK() { BOOL bChanged = FALSE; if( m_ulInputState != g_Input.ulState ) { g_Input.ulState = m_ulInputState; WriteRegDWORD( NULL, REG_INPUT_STATE, g_Input.ulState ); } if( m_nAutoMode != g_Input.Joy.nAutoMode ) { g_Input.Joy.nAutoMode = m_nAutoMode; WriteRegDWORD( NULL, REG_AUTOFIRE_MODE, g_Input.Joy.nAutoMode ); /* Update main window's indicator */ UpdateIndicator( ID_INDICATOR_JOY ); } if( m_ulAutoSticks != g_Input.Joy.ulAutoSticks ) { g_Input.Joy.ulAutoSticks = m_ulAutoSticks; WriteRegDWORD( NULL, REG_AUTOFIRE_STICKS, g_Input.Joy.ulAutoSticks ); } if( m_nBlockOpposite != INPUT_joy_block_opposite_directions ) { INPUT_joy_block_opposite_directions = m_nBlockOpposite; WriteRegDWORD( NULL, REG_BLOCK_OPPOSITE, INPUT_joy_block_opposite_directions ); } if( m_nMultiJoy != INPUT_joy_multijoy ) { INPUT_joy_multijoy = m_nMultiJoy; WriteRegDWORD( NULL, REG_MULTI_JOY, INPUT_joy_multijoy ); } for( int i = 0; i < MAX_ATARI_JOYPORTS; i++ ) { if( m_anDevSelected[ i ] != g_Input.anDevSelected[ i ] ) bChanged = TRUE; } if( bChanged ) { g_Input.Joy.ulSelected = (ULONG)((UBYTE)m_anDevSelected[ 3 ]) << 24; g_Input.Joy.ulSelected |= (ULONG)((UBYTE)m_anDevSelected[ 2 ]) << 16; g_Input.Joy.ulSelected |= (ULONG)((UBYTE)m_anDevSelected[ 1 ]) << 8; g_Input.Joy.ulSelected |= (ULONG)((UBYTE)m_anDevSelected[ 0 ]); WriteRegDWORD( NULL, REG_JOYSTICKS, g_Input.Joy.ulSelected ); } Input_Initialise( bChanged ); CCommonDlg::OnOK(); } /* #OF# CJoystickDlg::OnOK */
void CTreeView::OnTimer(UINT_PTR /*nIDEvent*/) { m_runIndex = (m_runIndex + 1) % 12; if (m_hCurrentItem) UpdateIndicator(); }