Merge pull request #1394 from TASVideos/appleii_fixattempt
[WIP] Trying to get Virtu fixed up a bit
This commit is contained in:
commit
31237e0c92
|
@ -115,8 +115,8 @@ namespace BizHawk.Emulation.Cores.Computers.AppleII
|
|||
}
|
||||
|
||||
private static readonly List<string> RealButtons = new List<string>(Keyboard.GetKeyNames()
|
||||
.Where(k => k != "White Apple") // Hack because these buttons aren't wired up yet
|
||||
.Where(k => k != "Black Apple")
|
||||
//.Where(k => k != "White Apple") // Hack because these buttons aren't wired up yet
|
||||
//.Where(k => k != "Black Apple")
|
||||
.Where(k => k != "Reset"));
|
||||
|
||||
private static readonly List<string> ExtraButtons = new List<string>
|
||||
|
|
16
BizHawk.sln
16
BizHawk.sln
|
@ -59,6 +59,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BizHawk.Client.MultiHawk",
|
|||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BizHawk.Client.ApiHawk", "BizHawk.Client.ApiHawk\BizHawk.Client.ApiHawk.csproj", "{8E2F11F2-3955-4382-8C3A-CEBA1276CAEA}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Virtu", "ExternalCoreProjects\Virtu\Virtu.csproj", "{8E522778-7A2C-4364-BDCE-0BA5623828E1}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
|
@ -125,6 +127,18 @@ Global
|
|||
{8E2F11F2-3955-4382-8C3A-CEBA1276CAEA}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{8E2F11F2-3955-4382-8C3A-CEBA1276CAEA}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{8E2F11F2-3955-4382-8C3A-CEBA1276CAEA}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{8E522778-7A2C-4364-BDCE-0BA5623828E1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{8E522778-7A2C-4364-BDCE-0BA5623828E1}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{8E522778-7A2C-4364-BDCE-0BA5623828E1}.Debug|x64.ActiveCfg = Debug|Any CPU
|
||||
{8E522778-7A2C-4364-BDCE-0BA5623828E1}.Debug|x64.Build.0 = Debug|Any CPU
|
||||
{8E522778-7A2C-4364-BDCE-0BA5623828E1}.Debug|x86.ActiveCfg = Debug|Any CPU
|
||||
{8E522778-7A2C-4364-BDCE-0BA5623828E1}.Debug|x86.Build.0 = Debug|Any CPU
|
||||
{8E522778-7A2C-4364-BDCE-0BA5623828E1}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{8E522778-7A2C-4364-BDCE-0BA5623828E1}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{8E522778-7A2C-4364-BDCE-0BA5623828E1}.Release|x64.ActiveCfg = Release|Any CPU
|
||||
{8E522778-7A2C-4364-BDCE-0BA5623828E1}.Release|x64.Build.0 = Release|Any CPU
|
||||
{8E522778-7A2C-4364-BDCE-0BA5623828E1}.Release|x86.ActiveCfg = Release|Any CPU
|
||||
{8E522778-7A2C-4364-BDCE-0BA5623828E1}.Release|x86.Build.0 = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
|
@ -145,7 +159,7 @@ Global
|
|||
{8E2F11F2-3955-4382-8C3A-CEBA1276CAEA} = {B51F1139-3D2C-41BE-A762-EF1F9B41EACA}
|
||||
EndGlobalSection
|
||||
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||
SolutionGuid = {1A77376C-2741-489C-90E1-03E415910B65}
|
||||
SolutionGuid = {9B9E4316-9185-412E-B951-A63355ACA956}
|
||||
EndGlobalSection
|
||||
GlobalSection(MonoDevelopProperties) = preSolution
|
||||
StartupItem = BizHawk.Client.EmuHawk\BizHawk.Client.EmuHawk.csproj
|
||||
|
|
Binary file not shown.
Binary file not shown.
|
@ -9,8 +9,8 @@ namespace Jellyfish.Virtu
|
|||
public sealed class GamePort : MachineComponent
|
||||
{
|
||||
// TODO: ressurect this
|
||||
public bool ReadButton0() { return false; }
|
||||
public bool ReadButton1() { return false; }
|
||||
public bool ReadButton0() { return Keyboard.WhiteAppleDown; }
|
||||
public bool ReadButton1() { return Keyboard.BlackAppleDown; }
|
||||
public bool ReadButton2() { return false; }
|
||||
|
||||
public bool Paddle0Strobe { get { return false; } }
|
||||
|
|
|
@ -264,6 +264,9 @@ namespace Jellyfish.Virtu
|
|||
{
|
||||
}
|
||||
|
||||
public static bool WhiteAppleDown;
|
||||
public static bool BlackAppleDown;
|
||||
|
||||
/// <summary>
|
||||
/// Call this at 60hz with all of the currently pressed keys
|
||||
/// </summary>
|
||||
|
@ -272,8 +275,15 @@ namespace Jellyfish.Virtu
|
|||
{
|
||||
Keys keys = FromStrings(keynames);
|
||||
|
||||
if (keys.HasFlag(Keys.WhiteApple)) { } // TODO: set GAME1
|
||||
if (keys.HasFlag(Keys.BlackApple)) { } // TODO: set GAME2
|
||||
if (keys.HasFlag(Keys.WhiteApple))
|
||||
WhiteAppleDown = true;
|
||||
else
|
||||
WhiteAppleDown = false;
|
||||
|
||||
if (keys.HasFlag(Keys.BlackApple))
|
||||
BlackAppleDown = true;
|
||||
else
|
||||
BlackAppleDown = false;
|
||||
|
||||
if (keys.HasFlag(Keys.Reset) && keys.HasFlag(Keys.Control)) { } // TODO: reset console
|
||||
|
||||
|
|
|
@ -74,7 +74,7 @@
|
|||
</ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
<PropertyGroup>
|
||||
<PostBuildEvent>copy /y $(TargetDir)$(TargetFileName) $(ProjectDir)..\..\references\$(TargetFileName)</PostBuildEvent>
|
||||
<PostBuildEvent>copy /y "$(TargetDir)$(TargetFileName)" "$(ProjectDir)..\..\references\$(TargetFileName)"</PostBuildEvent>
|
||||
</PropertyGroup>
|
||||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
||||
Other similar extension points exist, see Microsoft.Common.targets.
|
||||
|
|
Binary file not shown.
Loading…
Reference in New Issue