- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello All,
I am Sanket more. Currently i am working on USB-HID TOUCHPAD.
I am using CY8C4246AZI-L445 without gesture.
I want to get single click and double click using touchpad and send all data to usb.
If anyone have positive outcome on this,so then please reply back.
Thanks and regards,
Sanket More
Solved! Go to Solution.
- Labels:
-
PSoC 4 MCU
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I use the below codes to achieve the mouse double click.
mouseData[0] = 0x0A;//right click
while (0u == USBFS_GetEPAckState(MOUSE_ENDPOINT))
{
}
/* Load endpoint with data after ACK has been received. */
USBFS_LoadInEP(MOUSE_ENDPOINT, mouseData, MOUSE_DATA_LEN);
CyDelay(100);
mouseData[0] = 0x08;//release
/* Wait for ACK before loading data. */
while (0u == USBFS_GetEPAckState(MOUSE_ENDPOINT))
{
}
/* Load endpoint with data after ACK has been received. */
USBFS_LoadInEP(MOUSE_ENDPOINT, mouseData, MOUSE_DATA_LEN);
mouseData[0] = 0x0A;//right click
while (0u == USBFS_GetEPAckState(MOUSE_ENDPOINT))
{
}
/* Load endpoint with data after ACK has been received. */
USBFS_LoadInEP(MOUSE_ENDPOINT, mouseData, MOUSE_DATA_LEN);
CyDelay(100);
I attached my test project, which the Button 0.6 active, the right click will double click. If you have other custom application, please design the code depending on your requirement.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
But i am trying to take left click and right click using touchpad sense(by single click and double click). here main motive to take sense from touchpad. i already take attempts using button it is working.
i am looking for reply,
thanks and regards,
sanket more
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I use the below codes to achieve the mouse double click.
mouseData[0] = 0x0A;//right click
while (0u == USBFS_GetEPAckState(MOUSE_ENDPOINT))
{
}
/* Load endpoint with data after ACK has been received. */
USBFS_LoadInEP(MOUSE_ENDPOINT, mouseData, MOUSE_DATA_LEN);
CyDelay(100);
mouseData[0] = 0x08;//release
/* Wait for ACK before loading data. */
while (0u == USBFS_GetEPAckState(MOUSE_ENDPOINT))
{
}
/* Load endpoint with data after ACK has been received. */
USBFS_LoadInEP(MOUSE_ENDPOINT, mouseData, MOUSE_DATA_LEN);
mouseData[0] = 0x0A;//right click
while (0u == USBFS_GetEPAckState(MOUSE_ENDPOINT))
{
}
/* Load endpoint with data after ACK has been received. */
USBFS_LoadInEP(MOUSE_ENDPOINT, mouseData, MOUSE_DATA_LEN);
CyDelay(100);
I attached my test project, which the Button 0.6 active, the right click will double click. If you have other custom application, please design the code depending on your requirement.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello Sir,
I understand and implemented it. it is working fine.
but i want to take action from touchpad sense without gesture. All cursor movement on touchpad, single click and right click on button working good.
But i am trying to take single click and double click on touchpad not on button. This is my major task related to touchpads. please any positive comes always welcome.
Thanks and regards,
Sanket More
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I think the button and touchpad is similar.
I think we only can help you if you meet some difficulty.
You can tell us what you have try and what difficulty you meet, we can help you.
More about the capsense touchpad, please refer to the below linkers:
1:
2: