mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-27 00:04:35 +00:00
Use left and right mouse buttons for asm navigation.
Left click on source line just selects the line and the corresponding asm lines. Right click does the above and focuses asm view on the first selected line.
This commit is contained in:
parent
47d56f6259
commit
072fed288a
@ -899,10 +899,10 @@ void SourceView::RenderLine( const Line& line, int lineNum, uint32_t ipcnt, uint
|
||||
if( match > 0 && ImGui::IsMouseHoveringRect( wpos, wpos + ImVec2( w, ty+1 ) ) )
|
||||
{
|
||||
draw->AddRectFilled( wpos, wpos + ImVec2( w, ty+1 ), 0x11FFFFFF );
|
||||
if( ImGui::IsMouseClicked( 0 ) )
|
||||
if( ImGui::IsMouseClicked( 0 ) || ImGui::IsMouseClicked( 1 ) )
|
||||
{
|
||||
m_displayMode = DisplayMixed;
|
||||
SelectLine( lineNum, worker );
|
||||
SelectLine( lineNum, worker, ImGui::IsMouseClicked( 1 ) );
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -1116,7 +1116,7 @@ void SourceView::SelectAsmLines( uint32_t file, uint32_t line, const Worker& wor
|
||||
if( addresses )
|
||||
{
|
||||
const auto& addr = *addresses;
|
||||
if( changeAsmLine && !ImGui::GetIO().KeyCtrl )
|
||||
if( changeAsmLine )
|
||||
{
|
||||
if( targetAddr != 0 )
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user