Added nvdaControllerClient.dll source code to speech directory. Added game "shooter" which is not enabled yet because of problems with the 64 bit version of the nvdaControllerClient64.dll.
This commit is contained in:
16
speech/nvda-dll/Makefile
Normal file
16
speech/nvda-dll/Makefile
Normal file
@ -0,0 +1,16 @@
|
||||
CXX = i686-w64-mingw32-g++
|
||||
DLLTOOL = i686-w64-mingw32-dlltool
|
||||
|
||||
all: nvdaControllerClient32.dll
|
||||
|
||||
nvdaControllerClient32.dll: nvdaControllerClient32.o exports.o
|
||||
@$(CXX) -shared -o nvdaControllerClient32.dll nvdaControllerClient32.o exports.o
|
||||
|
||||
exports.o: nvdaControllerClient32.o
|
||||
@$(DLLTOOL) -e exports.o nvdaControllerClient32.o
|
||||
|
||||
nvdaControllerClient32.o: nvdaControllerClient32.cpp
|
||||
@$(CXX) -c nvdaControllerClient32.cpp
|
||||
|
||||
clean:
|
||||
@rm -f nvdaControllerClient32.o exports.o
|
17
speech/nvda-dll/Makefile.test
Normal file
17
speech/nvda-dll/Makefile.test
Normal file
@ -0,0 +1,17 @@
|
||||
CXX = i686-w64-mingw32-g++
|
||||
DLLTOOL = i686-w64-mingw32-dlltool
|
||||
CC = i686-w64-mingw32-gcc
|
||||
|
||||
all: nvdaControllerClient32.dll
|
||||
|
||||
nvdaControllerClient32.dll: nvdaControllerClient32.o exports.o
|
||||
@$(CC) -shared -o nvdaControllerClient32.dll nvdaControllerClient32.o exports.o
|
||||
|
||||
exports.o: nvdaControllerClient32.o
|
||||
@$(DLLTOOL) -e exports.o nvdaControllerClient32.o
|
||||
|
||||
nvdaControllerClient32.o: nvdaControllerClient32.c
|
||||
@$(CC) -c nvdaControllerClient32.cpp
|
||||
|
||||
clean:
|
||||
@rm -f nvdaControllerClient32.o exports.o
|
28
speech/nvda-dll/nvdaControllerClient32.c
Normal file
28
speech/nvda-dll/nvdaControllerClient32.c
Normal file
@ -0,0 +1,28 @@
|
||||
#include <stdio.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
unsigned long __stdcall __declspec(dllexport) nvdaController_speakText(const wchar_t* text);
|
||||
unsigned long __stdcall __declspec(dllexport) nvdaController_cancelSpeech();
|
||||
unsigned long __stdcall __declspec(dllexport) nvdaController_brailleMessage(const wchar_t* text);
|
||||
unsigned long __stdcall __declspec(dllexport) nvdaController_testIfRunning();
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
unsigned long __stdcall __declspec(dllexport) nvdaController_speakText(const wchar_t* text) {
|
||||
return 420;
|
||||
}
|
||||
|
||||
unsigned long __stdcall __declspec(dllexport) nvdaController_cancelSpeech() {
|
||||
return 420;
|
||||
}
|
||||
|
||||
unsigned long __stdcall __declspec(dllexport) nvdaController_brailleMessage(const wchar_t* text) {
|
||||
return 420;
|
||||
}
|
||||
|
||||
unsigned long __stdcall __declspec(dllexport) nvdaController_testIfRunning() {
|
||||
return 420;
|
||||
}
|
34
speech/nvda-dll/nvdaControllerClient32.cpp
Normal file
34
speech/nvda-dll/nvdaControllerClient32.cpp
Normal file
@ -0,0 +1,34 @@
|
||||
#include <stdio.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
unsigned long __stdcall __declspec(dllexport) nvdaController_speakText(const wchar_t* text);
|
||||
unsigned long __stdcall __declspec(dllexport) nvdaController_cancelSpeech();
|
||||
unsigned long __stdcall __declspec(dllexport) nvdaController_brailleMessage(const wchar_t* text);
|
||||
unsigned long __stdcall __declspec(dllexport) nvdaController_testIfRunning();
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
asm (".section .drectve");
|
||||
asm (".ascii \"-export:nvdaController_speakText\"");
|
||||
asm (".ascii \"-export:nvdaController_cancelSpeech\"");
|
||||
asm (".ascii \"-export:nvdaController_brailleMessage\"");
|
||||
asm (".ascii \"-export:nvdaController_testIfRunning\"");
|
||||
|
||||
unsigned long __stdcall __declspec(dllexport) nvdaController_speakText(const wchar_t* text) {
|
||||
return 420;
|
||||
}
|
||||
|
||||
unsigned long __stdcall __declspec(dllexport) nvdaController_cancelSpeech() {
|
||||
return 420;
|
||||
}
|
||||
|
||||
unsigned long __stdcall __declspec(dllexport) nvdaController_brailleMessage(const wchar_t* text) {
|
||||
return 420;
|
||||
}
|
||||
|
||||
unsigned long __stdcall __declspec(dllexport) nvdaController_testIfRunning() {
|
||||
return 420;
|
||||
}
|
Reference in New Issue
Block a user