technoboardLogo

Willkommen, Gast ( Anmelden | Registrierung )

> Touchpad, für ableton live
Roman001
Beitrag 11 Dec 2006, 14:01
Beitrag #1


ELECTRONIC-MUSIC-FAN
********

Gruppe: Members
Beiträge: 2.428
Mitglied seit: 27-February 03
Mitglieds-Nr.: 967



hi allerseits!

hab da so ne idee und würd mich interessieren ob wer von euch erfahrungen damit hat.

bei laptops ist es inzwischen ja gang und geben, dass tuchpads dabei sind.

kann man die maus ganz normal und wie gehabt verwenden wenn man zusätzlich eine anschließt und eben das tuchpad für die x/y achse im ableton programmieren?

ich frage desshalb, da ich gesehen hab, dass es solche tatstaturen bereits um 50€ zum anschließen an den normalen pc giebt und dies dann ja günstiger kommen würd als ein midi teil mit tuchpad.

(IMG:http://www.technoboard.at/style_emoticons/default/guckstduhier.gif) ebay

besten dank

roman

Der Beitrag wurde von Roman001 bearbeitet: 11 Dec 2006, 14:02
Go to the top of the page
 
+Quote Post
 
Start new topic
Antworten
Phatline
Beitrag 12 Dec 2006, 19:27
Beitrag #2


Auf 185 gaaas mocht spaaas
********

Gruppe: Members
Beiträge: 4.206
Mitglied seit: 25-October 04
Wohnort: LINZ
Mitglieds-Nr.: 4.777



Frage hab mir in der firma kurz mal das File aufgemacht:

Ähm kann damit wer was anfangen? (visual c++....) wie kann man daraus ne EXE machen?

/****************************************************************************\
* *
* First.c *
* *
* This is the first Fastgraph for Windows example program. It demonstrates *
* tasks common to most Fastgraph for Windows programs and serves as a *
* template for building the other examples. *
* *
\***************************************************************************
*/

#include <windows.h>
#include <hapi.h>
#include <string.h>
#include <stdio.h>

LRESULT CALLBACK WindowProc(HWND,UINT,WPARAM,LPARAM);

char message[100];

int WINAPI WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance,
PSTR szCmdParam, int iCmdShow) {
static char szAppName[] = "Mouse Test";
HWND root;
MSG msg;
WNDCLASSEX wndclass;
int i;
HBITMAP cursors[2];
hPOINT hotspots[2];
int count = 0;

wndclass.cbSize = sizeof(wndclass);
wndclass.style = CS_HREDRAW | CS_VREDRAW | CS_OWNDC;
wndclass.lpfnWndProc = WindowProc;
wndclass.cbClsExtra = 0;
wndclass.cbWndExtra = 0;
wndclass.hInstance = hInstance;
wndclass.hIcon = LoadIcon(NULL,IDI_APPLICATION);
wndclass.hCursor = LoadCursor(NULL,IDC_ARROW);
wndclass.hbrBackground = NULL;
wndclass.lpszMenuName = NULL;
wndclass.lpszClassName = szAppName;
wndclass.hIconSm = LoadIcon(NULL,IDI_APPLICATION);
RegisterClassEx(&wndclass);
root = CreateWindow(szAppName, // window class name
"CPNMouse for ordinary Windows applications", // window caption
(WS_OVERLAPPEDWINDOW | WS_ICONIC) & (~(WS_MAXIMIZEBOX | WS_THICKFRAME)), // window style
CW_USEDEFAULT, // initial x position
CW_USEDEFAULT, // initial y position
300, // initial x size
80, // initial y size
NULL, // parent window handle
NULL, // window menu handle
hInstance, // program instance handle
NULL); // creation parameters
ShowWindow(root,iCmdShow);

count = hInitialise(0, root, GetDC(NULL), BUTTON | MOVEMENT | CURSOR | CLIP | ACCELERATE);

sprintf(message, "I found %i mice using CPNMouse driver", count);

cursors[0] = LoadBitmap(hInstance, (LPCSTR) 20000);
cursors[1] = LoadBitmap(hInstance, (LPCSTR) 20001);

hotspots[0].x = 0;
hotspots[0].y = 0;
hotspots[1].x = 17;
hotspots[1].y = 0;

for (i = 0; i < count; ++i) {
if (i/2 == 0)
hSetCursor(i + 1, hotspots[i % 2], cursors[i % 2], 255, 0, 0);
if (i/2 == 1)
hSetCursor(i + 1, hotspots[i % 2], cursors[i % 2], 0, 255, 0);
if (i/2 == 2)
hSetCursor(i + 1, hotspots[i % 2], cursors[i % 2], 0, 0, 255);
if (i/2 >= 3)
hSetCursor(i + 1, hotspots[i % 2], cursors[i % 2], 0, 0, 0);
}

UpdateWindow(root);
while (GetMessage(&msg,NULL,0,0)) {
TranslateMessage(&msg);
DispatchMessage(&msg);
}

/* CPNMOUSE
* Give the mice back to Windows. This is also done automatically when
* the application exits (even when it crashes) */
hCleanup();

return msg.wParam;
}

/****************************************************************************\
* *
* WindowProc *
* *
* Window procedure to handle messages sent to the window. *
* *
\***************************************************************************
*/
HDC hDC;
RECT rectangle;
LRESULT CALLBACK WindowProc(HWND hWnd, UINT iMsg, WPARAM wParam, LPARAM lParam) {
PAINTSTRUCT ps;
RECT text;
hPOINT p;
int i;

switch (iMsg) {
case WM_CREATE:
hDC = GetDC(hWnd);
return 0;
case WM_PAINT:
BeginPaint(hWnd,&ps);
text.right = rectangle.right;
text.bottom = 40;
text.left = 20;
text.top = 20;
FillRect(hDC, &rectangle, (HBRUSH) (COLOR_WINDOW + 1));
DrawText(hDC, message, -1, &text, DT_END_ELLIPSIS);
EndPaint(hWnd,&ps);
return 0;
case WM_SETFOCUS:
InvalidateRect(hWnd,NULL,TRUE);
return 0;
case WM_SIZE:
rectangle.right = LOWORD(lParam);
rectangle.bottom = HIWORD(lParam);
return 0;
case WM_DESTROY:
ReleaseDC(hWnd,hDC);
PostQuitMessage(0);
return 0;
case (WM_USER + 1001):
hGetAbsolutePosition(HIBYTE(HIWORD(wParam)), &p);
SetCursorPos(p.x, p.y);
if (LOWORD(wParam) != 0)
mouse_event(((LOWORD(wParam)) << 1), 0, 0, 0, 0);
return 0;
}

return DefWindowProc(hWnd,iMsg,wParam,lParam);
}
Angehängte Datei(en)
Angehängte Datei  cpnmouse.png ( 34.94KB ) Anzahl der Downloads: 0
 
Go to the top of the page
 
+Quote Post

Beiträge in diesem Thema
Roman001   Touchpad   11 Dec 2006, 14:01
dj AcidGreen/Acidrecords   keine ahnung ob das geht aber ich sag mal ausm bau...   11 Dec 2006, 14:20
G-point   Naja, das einzige was mir da einfallen würde, wäre...   11 Dec 2006, 14:42
Roman001   hätts mir e auch für die filterkurfen vorgestellt....   11 Dec 2006, 14:53
NutraSweet   wenn du genug kohle hast, wäre das die echte optio...   11 Dec 2006, 14:56
Roman001   lemur hab ich bereits gesichtet! jedoch 2500€...   11 Dec 2006, 15:08
derrick s.   wirst wohl ein Touchpad meinen *klugscheiss* :) ...   11 Dec 2006, 15:08
Nayrobi   hab mir auch grad gedacht was denn ein tuchpad ist...   11 Dec 2006, 15:12
NutraSweet   web oder in freier wildbahn?   11 Dec 2006, 15:20
Roman001   lemur @ ebay ==> Lemur   11 Dec 2006, 15:45
Phatline   Ich persönlich bin ja kein Freund von so X-Y (und ...   11 Dec 2006, 16:46
Delegoano   lemur ist schon endgeil, aber ist auch nicht gerad...   11 Dec 2006, 17:34
dj AcidGreen/Acidrecords   um das geld kann ich ma soooo viele midi controlle...   11 Dec 2006, 18:13
Phatline   das hier Aber ich denk da ist man mit einem herkö...   11 Dec 2006, 18:37
dj AcidGreen/Acidrecords   eudaaaa wie geil is die shice bitteeee *touchscr...   11 Dec 2006, 19:15
Phatline   Du Touchfolien gibts auch zum nachrüsten! (sch...   11 Dec 2006, 19:33
dj AcidGreen/Acidrecords   ooh wie geil ;o) hehe soo software ist @ server ...   11 Dec 2006, 20:02
Phatline   @Roman, auch für dich gibt es ein kleines plugin: ...   11 Dec 2006, 20:05
Phatline   Wers noch nicht kennt (geheimtip), noten singen?...   11 Dec 2006, 21:27
Phatline   Es gibt da ja neben den Problem das nur ein Finger...   11 Dec 2006, 23:04
Phatline   Hab nun diese mehrere mäuse und keyboard auf einem...   12 Dec 2006, 00:34
Roman001   wow! ihr wart ja echt fleißig in der zeit wo ...   12 Dec 2006, 03:40
Roman001   @ phat bin gespannt ob du es auf die reihe bekomm...   12 Dec 2006, 07:27
Phatline   Frage hab mir in der firma kurz mal das File aufge...   12 Dec 2006, 19:27
Phatline   Ok neuester Stand:Ich hab mit denen von infotronic...   13 Dec 2006, 15:07
Roman001   @ phat meinst würde es auch funktionieren mehrere...   13 Dec 2006, 15:53
Phatline   Die touchpad 2 midisoftware funzt nur mit synapt...   13 Dec 2006, 17:45
dj AcidGreen/Acidrecords   hab mich jetzt mal schlau gemacht >>> 2x...   13 Dec 2006, 18:07
dj AcidGreen/Acidrecords   haben wollen http://www.bkanal.ch/blog/archives/...   13 Dec 2006, 18:13
Phatline   wie jetzt, die version die wir uns runtergeladen...   13 Dec 2006, 18:30
Phatline   Mann oh mann, Ableton sollten dafür eine Live Va...   13 Dec 2006, 18:42
b-seite   hm hat das mono touch live jetzt schon wer laufen?...   13 Dec 2006, 19:40
Phatline   Laufen tuts bei mir! - Einfach die MonoTou...   13 Dec 2006, 19:55
dj AcidGreen/Acidrecords   ja lass offen please ... hab heut auch schon mim ...   13 Dec 2006, 20:03
dj AcidGreen/Acidrecords   also mal abwarten ob da ne antwort von dem typen k...   13 Dec 2006, 20:05
dj AcidGreen/Acidrecords   wart am besten bis um 20:30 dann wissen wirs fix ....   13 Dec 2006, 20:19
Phatline   UUUUUUUUUND 120 minuten vergangen- laufend.... kei...   13 Dec 2006, 20:30
dj AcidGreen/Acidrecords   also was sind dann die 30min @ der download seite ...   13 Dec 2006, 21:22
b-seite   ok perfekt hab mir das fast gedacht... so ok je...   14 Dec 2006, 08:03
dj AcidGreen/Acidrecords   böse frage ich weiß aber hat irgendwer medizin für...   14 Dec 2006, 19:06
Phatline   hab mal geeselt- 4 files gefunden- erstes funzt au...   14 Dec 2006, 19:49
dj AcidGreen/Acidrecords   phat ... die kannst vergessen sind alles viren ......   14 Dec 2006, 19:53
Phatline   Ok, grad ist mein Touchscreen angekommen- Fotos gi...   19 Dec 2006, 13:03

« Vorhergehendes Thema · > producing Hardware · Folgendes Thema »
 
Bookmark and Share

Reply to this topicStart new topic
10 Besucher lesen dieses Thema (Gäste: 10 | Anonyme Besucher: 0)
0 Mitglieder:

 

- Vereinfachte Darstellung Aktuelles Datum: 30. June 2024 - 04:42


Copyright 2001 - 2014 technoboard.at
Die Texte geben die Meinung der Autoren und nicht unbedingt die des technoboard.at Teams wieder.
Alle fraglichen Inhalte werden auf Anfrage und alle gegen die BoardRegeln verstossenden Einträge automatisch entfernt (sobald sie bemerkt werden).
Kontakt: [email protected]

connected by: