OSDN Git Service

[VM][STATE] Use namespace {VMNAME} to separate per VMs.
[csp-qt/common_source_project-fm7.git] / source / src / vm / phc25 / joystick.cpp
index 4a3634c..ebdee0f 100644 (file)
@@ -11,6 +11,8 @@
 #include "joystick.h"
 #include "../ay_3_891x.h"
 
+namespace PHC25 {
+
 void JOYSTICK::initialize()
 {
        joy_stat = emu->get_joy_buffer();
@@ -24,3 +26,5 @@ void JOYSTICK::event_frame()
        d_psg->write_signal(SIG_AY_3_891X_PORT_A, ~(joy_stat[0] & 0x1f), 0xff);
        d_psg->write_signal(SIG_AY_3_891X_PORT_B, ~(joy_stat[1] & 0x1f), 0xff);
 }
+
+}