Skip to content

Commit

Permalink
Begin integrating direct ScreenReader support
Browse files Browse the repository at this point in the history
  • Loading branch information
cinderblocks committed Aug 27, 2021
1 parent fcd94ff commit 4986427
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Radegast/Core/RadegastInstance.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
using Radegast.Netcom;
using Radegast.Media;
using OpenMetaverse;
using ScreenReaderAPIWrapper;

namespace Radegast
{
Expand Down Expand Up @@ -115,6 +116,8 @@ public virtual void OnRadegastFormCreated(RadegastForm radForm)
/// </summary>
public ContextActionsManager ContextActionManager { get; private set; }

public ScreenReader ScreenReader { get; private set; }

/// <summary>
/// Allows key emulation for moving avatar around
/// </summary>
Expand Down Expand Up @@ -250,6 +253,7 @@ public RadegastInstance(GridClient client0)
Keyboard = new Keyboard();
Application.AddMessageFilter(Keyboard);

ScreenReader = new ScreenReader();
Netcom = new RadegastNetcom(this);
State = new StateManager(this);
MediaManager = new MediaManager(this);
Expand Down Expand Up @@ -304,6 +308,7 @@ private void InitializeClient(GridClient client)
client.Self.Movement.UpdateInterval = 250;

RegisterClientEvents(client);
ScreenReader.SapiEnabled = false; // TODO: add optional support
}

public string ComputeCacheName(string cacheDir, UUID assetID)
Expand Down
1 change: 1 addition & 0 deletions Radegast/Radegast.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@
<PackageReference Include="Newtonsoft.Json" Version="13.0.1" />
<PackageReference Include="OpenTK" Version="3.3.1" />
<PackageReference Include="OpenTK.GLControl" Version="3.1.0" />
<PackageReference Include="ScreenReaderAPIWrapper" Version="3.0.2" />
<PackageReference Include="System.Collections" Version="4.3.0" />
<PackageReference Include="System.ComponentModel.Composition" Version="5.0.0" />
<PackageReference Include="System.Console" Version="4.3.1" />
Expand Down

0 comments on commit 4986427

Please sign in to comment.